LoggingConfig

Logging configuration with a logger name match and a list of level ranges that maps to a list of sinks for each.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun atLevel(level: Level, configBlock: LevelRange.() -> Unit)

DSL function to specify a specific level at which to log.

Link copied to clipboard
fun exactLogger(exactName: String, stopOnMatch: Boolean = false)

DSL function to specify that logger names should match this name exactly.

Link copied to clipboard
fun fromLoggerBase(baseName: String, stopOnMatch: Boolean = false)

DSL function to specify that logger names should match from the specified base name.

Link copied to clipboard
fun fromMinLevel(minLevel: Level, configBlock: LevelRange.() -> Unit)

DSL function to specify the minimum level from which to log.

Link copied to clipboard
fun inLevelRange(minLevel: Level, maxLevel: Level, configBlock: LevelRange.() -> Unit)

DSL function to specify an inclusive range of levels at which to log.

Link copied to clipboard
fun matchLogger(pattern: String, stopOnMatch: Boolean = false)

DSL function to specify that logger names should match this regular expression pattern.

Link copied to clipboard
fun toMaxLevel(maxLevel: Level, configBlock: LevelRange.() -> Unit)

DSL function to specify the maximum level at which to log.

Link copied to clipboard
fun toSink(sinkName: String)

DSL function to specify a sink where events for all logging levels should be sent.