conjure-cp / conjure-oxide

Mozilla Public License 2.0
8 stars 16 forks source link

debug / info logging #255

Closed ChrisJefferson closed 1 month ago

ChrisJefferson commented 8 months ago

I see people often add, and comment out, various println! statements. Might be worth adding logging, controllable by command line or env, and then these logging messages can be left in, not printed by default, but turned on when needed?

ozgurakgun commented 8 months ago

Sounds good. @Kieranoski702's tree walker / rule applicator definitely needs a good trace, which we talked about in the past. Maybe the same logging library/setup can be used throughout.

ChrisJefferson commented 8 months ago

It took me a while to figure out how to dump a log to a file -- you might do better than me, but if not you can look at https://github.com/peal/vole/blob/master/rust/src/bin/vole.rs , where I set up logging for another program.

niklasdewally commented 1 month ago

Minus some CLI flags, this is done.