guzba / mummy

An HTTP and WebSocket server for Nim that returns to the ancient ways of threads.
MIT License
274 stars 10 forks source link

Verbose logging? #122

Closed mrichman closed 1 month ago

mrichman commented 1 month ago

Is there a command line switch or environment variable that governs log level? I'm looking to see debug logs in the terminal.

guzba commented 1 month ago

To manage the log messages from Mummy, you'll want to add a log handler when you call newServer here: https://github.com/guzba/mummy/blob/master/src/mummy.nim#L1451

In that handler you can echo or whatever you'd like to do with the log messages.