Console logger as default fallback.
This logger uses the console.log method and simply prepends a timestamp plus the used log level in uppercase. You can write your own custom logger or pass any other (e.g. ioBroker has a suitable logger on board), that matches the ILogger interface.
console.log
Initialize a new Logger.
Optional
Optionally define a custom log level. Default is LogLevel.INFO.
LogLevel.INFO
Protected
Get current datetime with milliseconds.
An ISO 8601 conform timestamp (e.g. 2020-10-10T12:34:56.789Z).
ILogger a message with severity debug to console.
debug
The debug message.
ILogger a message with severity error to console.
error
The error message.
ILogger a message with severity info.
info
The information.
Set the actual log level
Method calls to lower log levels than the one defined here, will not generate any output.
ILogger a message with severity warn to console.
warn
The warning.
Console logger as default fallback.
This logger uses the
console.log
method and simply prepends a timestamp plus the used log level in uppercase. You can write your own custom logger or pass any other (e.g. ioBroker has a suitable logger on board), that matches the ILogger interface.