ProtectedtimestampGet 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.
The debug message.
ILogger a message with severity error to console.
The error message.
ILogger a message with severity 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.
The warning.
Console logger as default fallback.
This logger uses the
console.logmethod 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.