I just want to know, what is the difference between esp's ESP_LOGx
and printf
, related to memory use and its other features.
And which is the best to use for log ESP_LOGI
, printf
or any other logging function?
Asked
Active
Viewed 3,335 times
3

Jonas
- 121,568
- 97
- 310
- 388

horsemann07
- 79
- 1
- 7
-
what did you learn yourself? What do you know about those families of functions/macros? – 0___________ Sep 23 '21 at 07:15
2 Answers
3
I think that for most of ad hoc debuging this it is a matter of preference with indication to use printf.
ESP_LOG(I/W/E) are intended to implement "permanent" logging functionality in the code and is also used in the ESP-IDF itself. Then depending on debugging scenario it is possible to globally or locally enable required verbosity levels of information to receive.

Fábio Ferreira
- 46
- 5