2023-03-01 15:59:44 +00:00
|
|
|
when not defined(nimscript):
|
|
|
|
import std/typetraits
|
|
|
|
import chronicles
|
2022-07-01 18:20:42 +00:00
|
|
|
|
2023-03-01 15:59:44 +00:00
|
|
|
when defined(chronicles_runtime_filtering):
|
|
|
|
setLogLevel(INFO)
|
2022-07-01 18:20:42 +00:00
|
|
|
|
2023-03-01 15:59:44 +00:00
|
|
|
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
|
2024-06-11 15:18:06 +00:00
|
|
|
|
2023-03-01 15:59:44 +00:00
|
|
|
defaultChroniclesStream.outputs[0].writer = noOutput
|
2023-02-10 10:32:21 +00:00
|
|
|
|
|
|
|
{.used.}
|