JulDebugLogger

Writes debug lines to the server log, tagged with the category that asked for them.

INFO rather than FINE: Paper ships a log4j configuration that drops everything below INFO, so a line logged at the level its content deserves would never reach the operator asking for it. The category prefix is what keeps the log readable instead.

Constructors

Link copied to clipboard
constructor(logger: Logger, state: DebugState)

Functions

Link copied to clipboard
open override fun isEnabled(category: DebugCategory): Boolean
Link copied to clipboard
open override fun log(category: DebugCategory, message: () -> String)