mirror of
https://github.com/esphome/esphome.git
synced 2026-09-17 18:18:43 +00:00
3a491722b2d91357de8148a35f132518951bde76
Switch from ESP-IDF Log V1 to V2, which centralizes log formatting inside esp_log() instead of expanding esp_log_timestamp(), color codes, and LOG_FORMAT() at every ESP_LOGx macro call site. This saves ~9KB of flash by eliminating ~500 per-site macro expansions in ESP-IDF library code (gpio, ethernet, mdns, uart, wifi, etc.). Override esp_log_format() to skip ESP-IDF's own formatting after the ESPHome logger hook is installed, since ESPHome does its own formatting. For early boot and constrained environments (ISR, cache disabled), format messages in ESPHome style with colors using a stack buffer.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
598 MiB
Languages
C++
55.7%
Python
43.7%
C
0.3%
JavaScript
0.2%
