[logger] Replace std::function callbacks with LogListener interface

This commit is contained in:
J. Nick Koston
2025-11-27 20:02:31 -06:00
parent eb2aa62d0d
commit c1b12791c6

View File

@@ -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 {