A logger manager. By default writes logs to console.
The Logger module is a small object to get loggers and control the underlying logger drivers.
A logger manager. By default writes logs to console.
Kind: global class
Write a trace level log message.
Kind: instance method of Logger
Param | Type | Description |
---|---|---|
msg | String |
Message to write. |
Write a debug level log message.
Kind: instance method of Logger
Param | Type | Description |
---|---|---|
msg | String |
Message to write. |
Write an info level log message.
Kind: instance method of Logger
Param | Type | Description |
---|---|---|
msg | String |
Message to write. |
Write a warning level log message.
Kind: instance method of Logger
Param | Type | Description |
---|---|---|
msg | String |
Message to write. |
Write an error level log message.
Kind: instance method of Logger
Param | Type | Description |
---|---|---|
msg | String |
Message to write. |
Set logger to throw an error every time a log message with severity higher than warning is written.
Kind: instance method of Logger
Param | Type | Description |
---|---|---|
enable | Boolean |
Set to true to throw error on warnings. |
The Logger module is a small object to get loggers and control the underlying logger drivers.
Kind: global constant
Logger
Get a logger object for a given logger name.
Kind: static method of LoggerModule
Returns: Logger
- Logger to use.
Param | Type | Description |
---|---|---|
name | String |
Logger name. |
Silent the logger.
Kind: static method of LoggerModule
Set log drivers that implement trace, debug, info, warn and error that all loggers will use.
Kind: static method of LoggerModule
Set logger application name.
Kind: static method of LoggerModule
Param | Type | Description |
---|---|---|
name | String |
Set application name to replace the ‘Shaku’ in the headers. |