I can't get the logging to work on the ESP32. Here is my example:
#define LOG_LOCAL_LEVEL ESP_LOG_VERBOSE
#include <esp_log.h>
void setup() {
Serial.begin(115200);
ESP_LOGE("Test", "This is a test!");
delay(1000);
}
void loop() {
ESP_LOGE("Test", "This is a repesting test!");
delay(1000);
Serial.println("Serial.print");
delay(1000);
}
It only prints Serial.print
every two seconds, but not the log messages.
1 Answer 1
Thanks to hcheung! I had to set the Core Debug Level
in the Tools
menu.
esp_log_level_set()
?#defines
and usingesp_log_level_set()
made no apparent difference. Setting Core Level Debug made all the difference, seeming to override the #defines mentioned above. -- John B