status-im / nim-chronicles

A crafty implementation of structured logging for Nim.
Apache License 2.0
153 stars 20 forks source link

How to log to a level stored in a variable? #110

Open hoijui opened 2 years ago

hoijui commented 2 years ago

Instead of:

info "What up?"

I'd like to be able to do:

let lvl = LogLevel.INFO
log lvl "What up?"

Is that possible? If yes, I would like to see it in the README as well. would you be fine with that?