This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.slf4j | |
enum class LogLevel { TRACE, DEBUG, INFO, WARN, ERROR } | |
fun Logger.trace(messageProducer: () -> Any?) = log(LogLevel.TRACE, null, messageProducer) | |
fun Logger.debug(messageProducer: () -> Any?) = log(LogLevel.DEBUG, null, messageProducer) | |
fun Logger.info(messageProducer: () -> Any?) = log(LogLevel.INFO, null, messageProducer) | |
fun Logger.warn(messageProducer: () -> Any?) = log(LogLevel.WARN, null, messageProducer) | |
fun Logger.error(messageProducer: () -> Any?) = log(LogLevel.ERROR, null, messageProducer) | |
fun Logger.trace(throwable: Throwable?, messageProducer: () -> Any?) = log(LogLevel.TRACE, throwable, messageProducer) |