api-docs / org.ktorm.logging / ConsoleLogger
ConsoleLogger
class ConsoleLogger : Logger
(source code)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
Name | Summary |
---|---|
ConsoleLogger(threshold: LogLevel) Simple Logger implementation printing logs to the console. While messages at WARN or ERROR levels are printed to |
Properties
Name | Summary |
---|---|
val threshold: LogLevel a threshold controlling which log levels are enabled. |
Functions
Name | Summary |
---|---|
Log a message at the DEBUG level. | |
Log a message at the ERROR level. | |
Log a message at the INFO level. | |
fun isDebugEnabled(): Boolean Check if the logger instance enabled for the DEBUG level. | |
fun isErrorEnabled(): Boolean Check if the logger instance enabled for the ERROR level. | |
fun isInfoEnabled(): Boolean Check if the logger instance enabled for the INFO level. | |
fun isTraceEnabled(): Boolean Check if the logger instance enabled for the TRACE level. | |
fun isWarnEnabled(): Boolean Check if the logger instance enabled for the WARN level. | |
Log a message at the TRACE level. | |
Log a message at the WARN level. |
Extension Functions
Name | Summary |
---|---|
infix fun <T : Any> T.eq( Equal operator, translated to | |
infix fun <T : Any> T.neq( Not-equal operator, translated to | |
infix fun <T : Any> T.notEq( Not-equal operator, translated to |