Class M.Logger
Extends
M.Object.
M.Logger defines the prototype for any logging object. It is used to log messages out of the application
based on a given logging level.
Defined in: logger.js.
Constructor Attributes | Constructor Name and Description |
---|---|
M.Logger()
|
Field Attributes | Field Name and Description |
---|---|
The type of this object.
|
Method Attributes | Method Name and Description |
---|---|
log(msg, level)
This method is used to log anything out of an application based on the given logging level.
|
Field Detail
{String}
type
The type of this object.
Method Detail
log(msg, level)
This method is used to log anything out of an application based on the given logging level.
Possible values for the logging level are:
- debug: M.DEBUG
- error: M.ERROR
- warning: M.WARN
- info: M.INFO
- Parameters:
- {String} msg
- The logging message.
- {Number} level
- The logging level.