ConsoleLogger

class ConsoleLogger(val threshold: LogLevel) : Logger(source)

Simple Logger implementation printing logs to the console. While messages at WARN or ERROR levels are printed to System.err, others are printed to System.out.

Constructors

Link copied to clipboard
constructor(threshold: LogLevel)

Properties

Link copied to clipboard

a threshold controlling which log levels are enabled.

Functions

Link copied to clipboard
open override fun debug(msg: String, e: Throwable?)

Log a message at the DEBUG level.

Link copied to clipboard
open override fun error(msg: String, e: Throwable?)

Log a message at the ERROR level.

Link copied to clipboard
open override fun info(msg: String, e: Throwable?)

Log a message at the INFO level.

Link copied to clipboard
open override fun isDebugEnabled(): Boolean

Check if the logger instance enabled for the DEBUG level.

Link copied to clipboard
open override fun isErrorEnabled(): Boolean

Check if the logger instance enabled for the ERROR level.

Link copied to clipboard
open override fun isInfoEnabled(): Boolean

Check if the logger instance enabled for the INFO level.

Link copied to clipboard
open override fun isTraceEnabled(): Boolean

Check if the logger instance enabled for the TRACE level.

Link copied to clipboard
open override fun isWarnEnabled(): Boolean

Check if the logger instance enabled for the WARN level.

Link copied to clipboard
open override fun trace(msg: String, e: Throwable?)

Log a message at the TRACE level.

Link copied to clipboard
open override fun warn(msg: String, e: Throwable?)

Log a message at the WARN level.