Logger
cdf. Logger
Static
This is a static class used for logging messages in the console.
AMD Module
require(["cdf/Logger"], function(Logger) { /* code goes here */ });
**Source:**Logger.js, line 16
Members
loglevel : string
The current log level.
Methods
debug(m)
Logs a message at debug
level.
error(m)
Logs a message at error
level.
exception(m)
Logs a message at exception
level.
info(m)
Logs a message at info
level.
log(m, type, css)
Logs a message to the console.
warn(m)
Logs a message at warn
level.
Members Details
loglevel: string
The current log level.
**Source:**Logger.js, line 44
Default Value:"debug"
## Methods Details
debug(m)
Logs a message at debug
level.
**Source:**Logger.js, line 87
m : string
Message to log.
Name
Default Value
Summary
m : string
Message to log.
error(m)
Logs a message at error
level.
**Source:**Logger.js, line 117
m : string
Message to log.
Name
Default Value
Summary
m : string
Message to log.
exception(m)
Logs a message at exception
level.
**Source:**Logger.js, line 127
m : string
| Object
Message to log or an object
containing information about the exception to log.
Name
Default Value
Summary
m : string
| Object
Message to log or an object
containing information about the exception to log.
info(m)
Logs a message at info
level.
**Source:**Logger.js, line 97
m : string
Message to log.
Name
Default Value
Summary
m : string
Message to log.
log(m, type, css)
Logs a message to the console using the specified type
log level if it is allowed by the current log level.
**Source:**Logger.js, line 54
m : string
| Object
Message to log or an object
containing information about an exception.
type : string
Optional
"info"
The log level, one of the registered log levels
.
css : string
Optional
CSS styling rules for the message.
Name
Default Value
Summary
m : string
| Object
Message to log or an object
containing information about an exception.
type : string
Optional
"info"
The log level, one of the registered log levels
.
css : string
Optional
CSS styling rules for the message.
warn(m)
Logs a message at warn
level.
**Source:**Logger.js, line 107
m : string
Message to log.
Name
Default Value
Summary
m : string
Message to log.
Last updated
Was this helpful?