DebugConfig

@Serializable(with = DebugConfigSerializer::class)
data class DebugConfig(val enabled: Boolean = false, val categories: Set<DebugCategory> = DebugCategory.entries.toSet(), val unknownCategories: List<String> = emptyList())(source)

The debug setting, which config.yml may spell as a switch or as a block.

Constructors

Link copied to clipboard
constructor(enabled: Boolean = false, categories: Set<DebugCategory> = DebugCategory.entries.toSet(), unknownCategories: List<String> = emptyList())

Properties

Link copied to clipboard

The categories that actually log.

Link copied to clipboard

the areas that log. Everything, unless config.yml narrows it.

Link copied to clipboard

the master switch. categories is ignored while this is false.

Link copied to clipboard

names config.yml asked for that this build has no category for, carried rather than thrown so the operator keeps the categories they spelled correctly.