Stream: helpdesk (published)

Topic: logging with extra levels


view this post on Zulip Expanding Man (Feb 23 2021 at 16:19):

Has anyone implemented logging with more levels beyond Debug, e.g. Debug2 Debug3?

view this post on Zulip Expanding Man (Feb 23 2021 at 16:20):

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

view this post on Zulip Expanding Man (Feb 23 2021 at 16:21):

I guess it wants all levels to be \ge Debug for some weird reason

view this post on Zulip Expanding Man (Feb 23 2021 at 16:24):

Ok, perhaps this was a dumb question. It works fine, it just really does not want you to use anything below Debug

view this post on Zulip Expanding Man (Feb 23 2021 at 16:28):

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.

view this post on Zulip mbaz (Feb 23 2021 at 16:34):

In Gaston.jl I ended up implementing my own logging.

view this post on Zulip Fredrik Ekre (Feb 23 2021 at 23:52):

You just have to configure your logger to accept messages with those levels


Last updated: Nov 22 2024 at 04:41 UTC