FileLogger
The FileLogger class is a logger implementation that logs messages to a file.
The FileLogger class is a logger implementation that logs messages to a file.
Properties
Properties | Description |
---|---|
filter | open override val filter: LogLevel |
Functions
log
Logs a message to the file.
Syntax: open override fun log(level: LogLevel, tag: String?, msg: String?, tr: Throwable?)
Parameters
Parameter | Description |
---|---|
level | The log level of the message. |
tag | The tag for the log message. |
msg | The log message. |
tr | The optional throwable is associated with the log message. |
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
Parameter | Description |
---|---|
level | The log level to check. |
Updated 8 days ago