SimpleLogger

abstract class SimpleLogger : Logger

Simplified Logger which passes all logs through a single log function that accepts an additional LogLevel argument. This is particularly useful when a logging backend does not have separate function calls for each log level.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Minimum level for this logger. Defaults to LogLevel.Verbose (all logs) if not overwritten.

Functions

Link copied to clipboard
override fun assert(tag: String, message: String, metadata: ReadMetadata, throwable: Throwable?)

Log at assert-level. Do not store a reference to metadata, create a copy if you need to.

Link copied to clipboard
override fun debug(tag: String, message: String, metadata: ReadMetadata, throwable: Throwable?)

Log at debug-level. Do not store a reference to metadata, create a copy if you need to.

Link copied to clipboard
fun Logger.dynamic(level: LogLevel, tag: String, message: String, metadata: ReadMetadata, throwable: Throwable?)
Link copied to clipboard
override fun error(tag: String, message: String, metadata: ReadMetadata, throwable: Throwable?)

Log at error-level. Do not store a reference to metadata, create a copy if you need to.

Link copied to clipboard
override fun info(tag: String, message: String, metadata: ReadMetadata, throwable: Throwable?)

Log at info-level. Do not store a reference to metadata, create a copy if you need to.

Link copied to clipboard
abstract fun log(level: LogLevel, tag: String, message: String, metadata: ReadMetadata, throwable: Throwable?)
Link copied to clipboard
Link copied to clipboard
override fun verbose(tag: String, message: String, metadata: ReadMetadata, throwable: Throwable?)

Log at verbose-level. Do not store a reference to metadata, create a copy if you need to.

Link copied to clipboard
override fun warn(tag: String, message: String, metadata: ReadMetadata, throwable: Throwable?)

Log at warn-level. Do not store a reference to metadata, create a copy if you need to.

Link copied to clipboard
Link copied to clipboard