dittosynckit / live.ditto / DittoLogger

DittoLogger

object DittoLogger

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

Properties

emojiLogLevelHeadingsEnabled

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

var emojiLogLevelHeadingsEnabled: Boolean

enabled

Represents whether logging is enabled.

var enabled: Boolean

minimumLogLevel

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

var minimumLogLevel: <ERROR CLASS>

Functions

ffiCustomLog

fun ffiCustomLog(cLogLevel: <ERROR CLASS>, msg: String): Unit

setCustomLogCallback

fun setCustomLogCallback(logCallback: ((<ERROR CLASS>, String) -> Unit)?): Unit
fun setCustomLogCallback(logCb: DittoLogCallback): Unit

setLogFile

fun setLogFile(logFile: String?): Unit