Logging functions.
Examples
// Log with simple message
log.debug('My log message');
// Log with placeholders
log.info('My %s message with %s', 'log', 'placeholders');
// Log a JSON object
log.warning('My JSON: %s', {a: 1});
// Log JSON object using string
log.error('My JSON: %s', JSON.stringify({a: 1}, null, 2));
Methods
(static) debug()
Log debug message.
Parameters:
Name | Type | Description |
---|---|---|
args... |
Array | logging arguments. |
(static) error()
Log error message.
Parameters:
Name | Type | Description |
---|---|---|
args... |
Array | logging arguments. |
(static) info()
Log info message.
Parameters:
Name | Type | Description |
---|---|---|
args... |
Array | logging arguments. |
(static) warning()
Log warning message.
Parameters:
Name | Type | Description |
---|---|---|
args... |
Array | logging arguments. |