DittoLogger

object DittoLogger : LoggerCb

Main singleton (global instance) to tweak the behavior of Ditto's logging infrastructure.

Properties

Link copied to clipboard

Represents whether logging levels are signified using emoji headings or classic words.

Link copied to clipboard

Represents whether logging is enabled.

Link copied to clipboard

The minimum log level at which logs will be logged, provided loggingEnabled is true.

Functions

Link copied to clipboard
open fun delete()
Link copied to clipboard
open override fun ffiCustomLog(cLogLevel: CLogLevel_t, msg: String)
Link copied to clipboard
Link copied to clipboard

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).

Link copied to clipboard
fun setLogFile(logFile: String?)

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).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Unregisters the currently registered callback (if any), to be used when interacting with the SDK from Java.