13 lines
355 B
Nim
13 lines
355 B
Nim
import std/typetraits
|
|
import chronicles
|
|
|
|
when defined(chronicles_runtime_filtering):
|
|
setLogLevel(INFO)
|
|
|
|
when defaultChroniclesStream.outputs.type.arity == 1:
|
|
# Hide the json logs, they're just here to check if we compile
|
|
proc noOutput(logLevel: LogLevel, msg: LogOutputStr) = discard
|
|
defaultChroniclesStream.outputs[0].writer = noOutput
|
|
|
|
{.used.}
|