Page 1 of 1

Using ESP32 logging with Arduino code

Posted: Sun Dec 13, 2020 11:05 pm
by borgdrone7
Hi,

I am using platformio for my ESP32 project and everything is working great and smooth so far. Today I wanted to replace print commands with ESP_LOGI, ESP_LOGW, etc. however I am not getting any output. I read the docs and set log level to verbose using this:
#define LOG_LOCAL_LEVEL ESP_LOG_VERBOSE
But still there is no output.
I am but confused by the fact that I don't need to #include "esp_log.h" for my program to compile when I use ESP_LOG* functions. However if I include it nothing changes. Is this automatically included in Arduino.h? Maybe it overrides default log level?
Another thing is that in documentation they keep saying that I can enable it compile time by setting some options in menuconfig. I guess menuconfig is ESP-IDF configuration tool, but can I make it work together with platformio and Arduino libs?

In a nutshell I want to use ESP-IDF logging in ESP32 Arduino libs project and I am not getting output.

Thanks