[logger] Replace LogListener virtual interface with LogCallback struct (#14084)

This commit is contained in:
J. Nick Koston
2026-02-19 08:40:08 -06:00
committed by GitHub
parent 7b53a98950
commit 6daca09794
11 changed files with 65 additions and 68 deletions
+4 -1
View File
@@ -92,7 +92,10 @@ void APIServer::setup() {
#ifdef USE_LOGGER
if (logger::global_logger != nullptr) {
logger::global_logger->add_log_listener(this);
logger::global_logger->add_log_callback(
this, [](void *self, uint8_t level, const char *tag, const char *message, size_t message_len) {
static_cast<APIServer *>(self)->on_log(level, tag, message, message_len);
});
}
#endif