LoggingConfig

class LoggingConfig

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

Constructors

LoggingConfig
Link copied to clipboard
common
fun LoggingConfig()

Functions

atLevel
Link copied to clipboard
common
fun atLevel(level: Level, configBlock: LevelRange.() -> Unit)
DSL function to specify a specific level at which to log.
exactLogger
Link copied to clipboard
common
fun exactLogger(exactName: String)
DSL function to specify that logger names should match this name exactly.
fromLoggerBase
Link copied to clipboard
common
fun fromLoggerBase(baseName: String)
DSL function to specify that logger names should match from the specified base name.
fromMinLevel
Link copied to clipboard
common
fun fromMinLevel(minLevel: Level, configBlock: LevelRange.() -> Unit)
DSL function to specify the minimum level from which to log.
toSink
Link copied to clipboard
common
fun toSink(sinkName: String)
DSL function to specify a sink where events for all logging levels should be sent.

Properties

matchAllLoggers
Link copied to clipboard
common
internal val matchAllLoggers: String
Default matching is all logger names.
nameMatch
Link copied to clipboard
common
internal var nameMatch: Regex
ranges
Link copied to clipboard
common
internal val ranges: MutableList<LevelRange>