nim-dagger/tests/logging.nim

11 lines
230 B
Nim
Raw Normal View History

when not defined(nimscript):
import pkg/chronicles
proc ignoreLogging(level: LogLevel, message: LogOutputStr) =
discard
defaultChroniclesStream.output.writer = ignoreLogging
{.warning[UnusedImport]:off.}
{.used.}