Home > @i2analyze/notebook-sdk > ILogger
ILogger interface
A diagnostic logger that i2 Notebook plug-ins can use.
Signature:
export interface ILogger
Introduced: version 1.0
Remarks
In formatted message strings, '%d
' is a numeric representation of the parameter, '%j
' is a JSON representation of the parameter, and '%s
' is a string representation of the parameter.
Any extra parameters are interpreted automatically as '%s
'.
The default logging level is info
.
Methods
Method | Description |
---|---|
debug(message) | Logs a message at 'debug' level. |
debug(format, args) | Logs a formatted message at 'debug' level. |
error(message) | Logs a message at 'error' level. |
error(format, args) | Logs a formatted message at 'error' level. |
info(message) | Logs a message at 'info' level. |
info(format, args) | Logs a formatted message at 'info' level. |
setLogLevel(level) | Sets the minimum level, or severity, of messages that will be emitted. |
warn(message) | Logs a message at 'warn' level. |
warn(format, args) | Logs a formatted message at 'warn' level. |