DittoLogger
Class with static methods to customize the logging behavior from Ditto.
-
Represents whether logging is enabled.
-
The minimum log level at which logs will be logged, provided the logger is
enabled
.For example if this is set to
DittoLogLevel.warning
, then only logs that are logged with theWarning
orError
log levels will be shown. -
Represents whether or not emojis should be used as the log level indicator in the logs.
-
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).
-
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).
-
Registers a callback for a fully customizable way of handling log “events” from the logger (on top of logging to the console, and to a file, if any).