smartknob-ha / firmware

smartknob firmware, esp-idf based instead of tasmota
GNU Affero General Public License v3.0
2 stars 1 forks source link

Centralised logging solution #5

Closed SquaredPotato closed 4 months ago

SquaredPotato commented 1 year ago

We need a way for the system to collect errors as they occur across the systems' components. Something like a generic logging interface that can implement many log-message listeners to send the message to different future endpoints.

SquaredPotato commented 1 year ago

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/log.html#_CPPv419esp_log_set_vprintf14vprintf_like_t

SquaredPotato commented 4 months ago

We're using the built-in idf logging feature, this should give us plenty of flexibility for later.