Has anyone implemented logging with more levels beyond Debug
, e.g. Debug2
Debug3
?
I've messed around with it a bit and it seems like a pain... for some reason anything beyond debug won't display because it's disabled by Base.CoreLogging._min_enabled_level
I guess it wants all levels to be \ge Debug
for some weird reason
Ok, perhaps this was a dumb question. It works fine, it just really does not want you to use anything below Debug
The only problem with this is that it doesn't give me any option about how JULIA_DEBUG
affects my custom logging levels: it's always going to display them. That's kind of annoying, it would be nice to have the option to have "deeper" debug messages that only display if you do something else.
In Gaston.jl I ended up implementing my own logging.
You just have to configure your logger to accept messages with those levels
Last updated: Nov 22 2024 at 04:41 UTC