Open nikeee opened 4 years ago
Definitely , I have thought about that, if you can think of a way to simply modify the outputs of the existing logger functions?
I would rather not replace them in case we ever support another micro etc.
Maybe just swap wm serial output via a define to ESP_ logs instead, and maybe we can add a variable prefix to pass also instead of *wm
Alternative would be to redefine the logging functions at compile time. But I have a few weird ones.. Like key,value pairs
Basic Infos
Hardware
WiFimanager Branch/Release:
Esp8266/Esp32:
ESP Core Version: 2.4.0, staging
Description
Currently, WiFiManager uses a custom logging infrastructure to log stuff: https://github.com/tzapu/WiFiManager/blob/e454c9969a327bcf1be221d19380381e08ca515c/WiFiManager.h#L561-L594
However, ESP-IDF offers an API for logging (which is also part of Arduino): https://thingpulse.com/esp32-logging/
It offers tagging (which would be
*WM
) as well as setting the verbosity at compile time as well as runtime.Is this something that could be used? If so I'd be hapy to do a PR.