FileConfiguration

@Serializable
data class FileConfiguration(val configName: String? = null, val kloggingMinLogLevel: Level = defaultKloggingMinLogLevel, val minDirectLogLevel: Level = defaultMinDirectLogLevel, val sinks: Map<String, FileSinkConfiguration> = mapOf(), val logging: List<FileLoggingConfig> = listOf(), val baseContext: Map<String, String> = mapOf())

Data class for file representation of KloggingConfiguration, either in JSON or HOCON format.

Fields are optional so that when append is specified, only new configuration needs to be included in the file.

Constructors

Link copied to clipboard
constructor(configName: String? = null, kloggingMinLogLevel: Level = defaultKloggingMinLogLevel, minDirectLogLevel: Level = defaultMinDirectLogLevel, sinks: Map<String, FileSinkConfiguration> = mapOf(), logging: List<FileLoggingConfig> = listOf(), baseContext: Map<String, String> = mapOf())

Properties

Link copied to clipboard
Link copied to clipboard
val configName: String? = null

optional configuration name

Link copied to clipboard

minimum level for Klogging internal logger

Link copied to clipboard
Link copied to clipboard

minimum level for Klogging to send log events directly (i.e. not via coroutine channels)

Link copied to clipboard