[Feature] different log levels and tag modules #2361
stefan123t
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to limit the amount of information that is logged via both Serial Console and Web Console to allow debugging some long term issues in specific components / modules of the code.
Currently I am drowning in the messages send via Hoymiles.cpp and HoymilesRadio.cpp on Commands being sent and Packets being handled. At least the latter I would like to mute as I am trying to focus on other modules / components of the OpenDTU, e.g. lost WiFi connection, etc.
IMO it would make sense to use a logging framework, e.g. ESP-IDF which allows for several Log Levels (Error, Warning, Info, Debug, Verbose) as well as allows tagging individual modules (e.g. Hoymiles, HoymilesRadio, etc.)
Logging library
https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/system/log.html
...
Beta Was this translation helpful? Give feedback.
All reactions