Constructor
new ConsoleLogger(configopt)
Initializes a console logger.
Allows to create a child logger by providing the config
param.
Anything in this configuration will be appended for each log.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
config |
object |
<optional> |
optional child logger configuration |
- Source:
Methods
debug(…args)
Logs a debug message.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
object |
<repeatable> |
arguments to be relayed for logging |
- Source:
error(…args)
Logs an error message.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
object |
<repeatable> |
arguments to be relayed for logging |
- Source:
info(…args)
Logs an info message.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
object |
<repeatable> |
arguments to be relayed for logging |
- Source:
trace(…args)
Logs a trace message.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
object |
<repeatable> |
arguments to be relayed for logging |
- Source:
warn(…args)
Logs a warn message.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
object |
<repeatable> |
arguments to be relayed for logging |
- Source: