Static Optional Readonly customReturns the current custom log callback, undefined by default. See
setCustomLogCallback() for a detailed
description.
Static Optional Readonly logRegisters a file path where logs will be written to, whenever Ditto wants to issue a log (on top of emitting the log to the console).
Static emojiRepresents whether or not emojis should be used as the log level indicator in the logs.
Represents whether or not emojis should be used as the log level indicator in the logs.
Static enabledWhether the logger is currently enabled.
Enables or disables logging.
Static minimumThe minimum log level at which logs will be logged.
For example if this is set to Warning, then only logs that are logged
with the Warning or Error log levels will be shown.
The minimum log level at which logs will be logged.
For example if this is set to Warning, then only logs that are logged
with the Warning or Error log levels will be shown.
Static debugStatic errorStatic infoStatic logStatic setRegisters a custom callback that will be called to report each log entry.
function called for each log entry. undefined will
unregister any previous callback and stop reporting log entries through
callbacks.
Static setOn Node, registers a file path where logs will be written to, whenever Ditto wants to issue a log (on top of emitting the log to the console). In the browser, this method has no effect.
can be null, in which case the current logging file, if any,
is unregistered, otherwise, the file path must be within an already
existing directory.
Static setConvenience method, takes the path part of the URL and calls setLogFile() with it.
Static verboseStatic warning
Class with static methods to customize the logging behavior from Ditto and log messages with the Ditto logging infrastructure.