ConsoleLogger
A logger implementation that logs messages to the console.
A logger implementation that logs messages to the console.
Parameters
Parameter | Type | Description |
---|---|---|
filter | BaseLogger | The log level filter for the logger. |
Constructors
Public Constructor | Syntax |
---|---|
ConsoleLogger | constructor(filter: LogLevel) |
Properties
Properties | Syntax |
---|---|
filter | open override val filter: LogLevel |
Parameter
Functions
log
Logs a message to the console.
Syntax: open override fun log(level: LogLevel, tag: String?, msg: String?, tr: Throwable?)
Parameters
shouldLog
Determines whether the logger should log a message based on the log level.
Syntax: open override fun shouldLog(level: LogLevel): Boolean
Return Value: True if the logger should log the message, false otherwise.
Parameters
Updated about 1 month ago