1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-31 07:03:55 +00:00

[logger] Conditionally compile runtime tag-specific log levels for performance (#11004)

This commit is contained in:
J. Nick Koston
2025-10-05 15:59:52 -05:00
committed by GitHub
parent c0fb0ae06f
commit 20d9ae699c
5 changed files with 36 additions and 6 deletions

View File

@@ -6,11 +6,16 @@ esphome:
format: "Warning: Logger level is %d"
args: [id(logger_id).get_log_level()]
- logger.set_level: WARN
- logger.set_level:
level: ERROR
tag: mqtt.client
logger:
id: logger_id
level: DEBUG
initial_level: INFO
logs:
mqtt.component: WARN
select:
- platform: logger