From c1b12791c62d79322adaf92714ed9cd98af91c79 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 27 Nov 2025 20:02:31 -0600 Subject: [PATCH] [logger] Replace std::function callbacks with LogListener interface --- esphome/components/logger/logger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/logger/logger.h b/esphome/components/logger/logger.h index 87a485ca52..3b7710a64a 100644 --- a/esphome/components/logger/logger.h +++ b/esphome/components/logger/logger.h @@ -39,7 +39,7 @@ namespace esphome::logger { /** Interface for receiving log messages without std::function overhead. * * Components can implement this interface instead of using lambdas with std::function - * to avoid the ~600 bytes per-type cost of std::function type erasure machinery. + * to reduce flash usage from std::function type erasure machinery. * * Usage: * class MyComponent : public Component, public LogListener {