ConsoleLogger

expect object ConsoleLogger : Logger

Logger for the console, taking advantage of available features such as stderr or js console levels.

actual object ConsoleLogger : Logger

Console logger for JS.

  • Calls to verbose and debug are mapped to console.debug(...).

  • Calls to info are mapped to console.info(...).

  • Calls to warn are mapped to console.warn(...).

  • Calls to error are mapped to console.error(...).

  • Calls to assert are mapped to console.assert(false, ...)

actual object ConsoleLogger : Logger

Logger for System.out and System.err.

Properties

Link copied to clipboard

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

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

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

open override val minimumLogLevel: LogLevel

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

Functions

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

actual 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.

actual 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.

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
expect 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.

actual 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.

actual 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.

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
expect 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.

actual 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.

actual 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.

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
expect 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.

actual 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.

actual 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.

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

actual 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.

actual 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.

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
expect 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.

actual 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.

actual 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.

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