3.0.0 – 2022-11-03
Support setting a level on each Logger
.
- Support setting a level on each
Logger
. - Function to get the global log level.
- Function to get the effective log level on a
Logger
. - Support logging messages at a specific level without providing the facility.
- Make
PrintHandler
more efficient by removing the log message before printing it. - Use
PSTR_ALIGN
for flash strings.
2.3.0 – 2022-10-25
Be thread-safe where possible.
- Function to get a
Logger
's default facility for new messages. - Indicate whether this version of the library is thread-safe or not (
UUID_LOG_THREAD_SAFE
anduuid::log::thread_safe
).
- Make the library thread-safe when supported by the platform.
2.2.0 – 2022-01-29
Add a basic log handler for the Print interface.
- Basic log handler for writing messages to any object supporting the
Print
interface (PrintHandler
).
2.1.4 – 2021-06-02
Fix for compile failure with newer GCC in espressif8266 3.0.0.
- Compile failure with newer GCC in espressif8266 3.0.0 using
reinterpret_cast
for aconstexpr
value.
2.1.3 – 2021-04-18
Upgrade to PlatformIO 5.
- Use PlatformIO 5 dependency specification.
2.1.2 – 2020-01-17
Fixes for uncontrolled ordering of static object lifetimes.
- Automatically unregister handlers when they are destroyed.
- Make registration of log handlers safe during static initialization and unregistration safe during static deinitialization.
2.1.1 – 2019-09-15
Fix to use less memory.
- Use a flash string for the format string in
format_timestamp_ms()
.
2.1.0 – 2019-09-07
Add functions to get levels, format them as strings and parse them
- Functions to get a list of all levels, format them as uppercase or lowercase strings and then parse them back again.
2.0.4 – 2019-08-26
Fix uptime format string.
- Put formatting functions in a separate file to improve linker behaviour.
- Uptime format string should use the unsigned conversion specifier for all values.
2.0.3 – 2019-08-17
Make get_log_level()
accept a const Handler
.
- Make
get_log_level()
accept aconst Handler
.
2.0.2 – 2019-08-17
Make logging functions const
so that a const Logger
can be used.
- Make all of the logging functions
const
.
2.0.1 – 2019-08-16
Fix ESP32 builds and the example.
- Workaround incorrect definition of
FPSTR()
on ESP32 (#1371). - Remove use of
Serial.printf_P()
from the example (which does not exist in the standard Arduino library). - Add missing
Serial.begin()
to the example.
2.0.0 – 2019-08-12
Improve names of types, data members and interfaces.
- The names of
Message
data members no longer have trailing underscores. - Rename log
Receiver
type toHandler
. - Use operator
<<
instead ofadd_log_message()
as the interface for log handlers.
1.0.1 – 2019-08-12
Fix uptime text formatting.
- The size of the
Level
andFacility
enums is now 1 byte.
- The width of the days part when formatting uptimes now has an upper bound of 10 instead of a lower bound of 10.
1.0.0 – 2019-08-11
First stable release.
- Support for logging messages at all syslog levels and facilities.
- Support for registering receivers to handle log messages.