Tested on an ESP32, now allows data arguments input
Purpose
Updated the code of the Logging namespace, making it work with an ESP32 as intended.
The logging wrapper can now take any number of variable arguments as input and will follow the printf structure (format, variables).
Also fixed an issue causing the serial monitor to not display a newline character after every log message.
main.cpp now initiates the logger namespace and uses it for notice messages.
Implementation
The log messages are now called through a template function, with the same structure as the Arduinolog library.
The wrapper now uses "ln" versions of the log functions instead of "CR" to add a new line after a message, as these function better with the new structure.
Testing
Tested using an ESP32 device, with the PlatformIO VScode extension
Tested on an ESP32, now allows data arguments input
Purpose
Updated the code of the Logging namespace, making it work with an ESP32 as intended. The logging wrapper can now take any number of variable arguments as input and will follow the printf structure (format, variables).
Also fixed an issue causing the serial monitor to not display a newline character after every log message.
main.cpp now initiates the logger namespace and uses it for notice messages.
Implementation
The log messages are now called through a template function, with the same structure as the Arduinolog library. The wrapper now uses "ln" versions of the log functions instead of "CR" to add a new line after a message, as these function better with the new structure.
Testing
Tested using an ESP32 device, with the PlatformIO VScode extension
References
https://github.com/thijse/Arduino-Log