Update for new logger API

This commit is contained in:
2025-10-11 12:28:59 +00:00
parent c44e98d4a1
commit 455633bf19
+2 -1
View File
@@ -67,9 +67,10 @@ void Syslog::setup() {
#ifdef USE_LOGGER
if (logger::global_logger != nullptr && this->forward_logger_) {
logger::global_logger->add_on_log_callback(
[this](int level, const char *tag, const char *message) {
[this](int level, const char *tag, const char *raw_message, size_t raw_message_len) {
if (level > this->min_log_level_) return;
std::string message = std::string(raw_message, raw_message_len);
if (this->strip_color_codes_) {
std::string clean_message = remove_ansi_colors(message);
this->log(level, tag, clean_message);