[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
+1 -5
View File
@@ -37,10 +37,6 @@ struct SavedNoisePsk {
class APIServer : public Component,
public Controller
#ifdef USE_LOGGER
,
public logger::LogListener
#endif
#ifdef USE_CAMERA
,
public camera::CameraListener
@@ -56,7 +52,7 @@ class APIServer : public Component,
void on_shutdown() override;
bool teardown() override;
#ifdef USE_LOGGER
void on_log(uint8_t level, const char *tag, const char *message, size_t message_len) override;
void on_log(uint8_t level, const char *tag, const char *message, size_t message_len);
#endif
#ifdef USE_CAMERA
void on_camera_image(const std::shared_ptr<camera::CameraImage> &image) override;