KloggingConfiguration

Klogging configuration for a runtime.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun kloggingMinLogLevel(minLevel: Level)

DSL function to set minimum logging level for Klogging’s internal logger.

Link copied to clipboard
fun logging(configBlock: LoggingConfig.() -> Unit)

DSL function to add a logging configuration specified in configBlock.

Link copied to clipboard
fun loggingConfigPath(configPath: String?)

Set the path of a logging configuration file. The configuration in the file will be combined with any specified directly in the DSL.

Link copied to clipboard
fun minDirectLogLevel(minLevel: Level)

DSL function to set minimum logging level for sending events directly to sinks.

Link copied to clipboard
fun minimumLevelOf(loggerName: String): Level

Calculate the minimum level of all level ranges in all configurations.

Link copied to clipboard
fun sink(sinkName: String, sinkConfig: SinkConfiguration)
fun sink(sinkName: String, renderer: RenderString, sender: SendString)

DSL function to specify a sink where log events can be dispatched.

fun sink(sinkName: String, eventSender: EventSender)

DSL function to specify a sink from an EventSender.