Open moin110x opened 2 years ago
I ran into this when I was trying to use a dynamic writer without defining a dynamic output. Compiling with something like --define:chronicles_sinks=textblocks[dynamic]
or --define:chronicles_default_output_device=dynamic
will probably fix it. Replace dynamic
with file
for your 2nd example.
Hi, im am trying to compile this code that i just directly copied form the documentaiton provided in the github page of this repository
defaultChroniclesStream.output.writer = proc (logLevel: LogLevel, msg: LogOutputStr) {.gcsafe.} = database.writeLogEntry(msg)
link: https://github.com/status-im/nim-chronicles#working-with-dynamic-outputs
and getting the following error during compilation:
and also i get the same error when trying to use log file
code:
var config = loadConfiguration() let success = defaultChroniclesStream.output.open(config.logFile, fmAppend) info "APPLICATION STARTED"
https://github.com/status-im/nim-chronicles#working-with-file-outputs