DispatchLogger

Implementation of Logger which dispatches calls to consumer Loggers.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val minimumLogLevel: LogLevel

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

Functions

Link copied to clipboard
open 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
fun clear()

Uninstall all installed consumers.

Link copied to clipboard
open 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
open 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
open 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
fun install(consumer: Logger)

Add a consumer to receive future dispatch calls.

Link copied to clipboard
Link copied to clipboard
open 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
open 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