DittoLogger

object DittoLogger : LoggerCb

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

Functions

delete
Link copied to clipboard
open fun delete()
ffiCustomLog
Link copied to clipboard
open override fun ffiCustomLog(cLogLevel: CLogLevel_t, msg: String)
finalize
Link copied to clipboard
open fun finalize()
registerCustomLogCb
Link copied to clipboard
open fun registerCustomLogCb()
setCustomLogCallback
Link copied to clipboard
fun setCustomLogCallback(logCallback: (DittoLogLevel, String) -> Unit?)
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).
fun setCustomLogCallback(logCb: DittoLogCallback)
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).
setLogFile
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).
swigDirectorDisconnect
Link copied to clipboard
open fun swigDirectorDisconnect()
swigReleaseOwnership
Link copied to clipboard
open fun swigReleaseOwnership()
swigTakeOwnership
Link copied to clipboard
open fun swigTakeOwnership()
unregisterCustomLogCb
Link copied to clipboard
open fun unregisterCustomLogCb()
unsetCustomLogCallback
Link copied to clipboard
fun unsetCustomLogCallback()
Unregisters the currently registered callback (if any), to be used when interacting with the SDK from Java.

Properties

emojiLogLevelHeadingsEnabled
Link copied to clipboard
var emojiLogLevelHeadingsEnabled: Boolean
Represents whether logging levels are signified using emoji headings or classic words.
enabled
Link copied to clipboard
var enabled: Boolean
Represents whether logging is enabled.
minimumLogLevel
Link copied to clipboard
var minimumLogLevel: DittoLogLevel
The minimum log level at which logs will be logged, provided loggingEnabled is true.
swigCMemOwn
Link copied to clipboard
val swigCMemOwn: Boolean