ESP_LOGX tags not appearing (using esp32-hal-log.h).
Posted: Thu Dec 27, 2018 10:54 pm
Hey chaps,
Not sure whether I missed a key piece of information? I'm wondering if anyone has insight.
I often switch between the IDF and Arduino environment (I'm still learning the ropes!) and thought it would be handy to use the ESP_LOGX macros in the Arduino envionrment (and hopefully cut down some work when transfering code).
I noticed esp32-hal-log.h can be used; so I've been trying it out. The messages appear when setting the correct core debug levels (and stops working below the threshold), however the tags do not appear (which work in IDF).
I've tried using the Arduino IDE (I normally use platformIO with visual studio code), and various ESP32 Arduino frameworks, and no luck there...
The header is here; https://github.com/espressif/arduino-es ... -hal-log.h
I've reduced an example to the below:
Many thanks in advance!
Not sure whether I missed a key piece of information? I'm wondering if anyone has insight.
I often switch between the IDF and Arduino environment (I'm still learning the ropes!) and thought it would be handy to use the ESP_LOGX macros in the Arduino envionrment (and hopefully cut down some work when transfering code).
I noticed esp32-hal-log.h can be used; so I've been trying it out. The messages appear when setting the correct core debug levels (and stops working below the threshold), however the tags do not appear (which work in IDF).
I've tried using the Arduino IDE (I normally use platformIO with visual studio code), and various ESP32 Arduino frameworks, and no luck there...
The header is here; https://github.com/espressif/arduino-es ... -hal-log.h
I've reduced an example to the below:
Code: Select all
#include <Arduino.h>
#include "esp_err.h"
#include "esp_log.h"
#include "esp32-hal-log.h"
#define TAG_TEST "Test"
void setup()
{
//Serial.begin(115200);
//esp_log_level_set("*", ESP_LOG_VERBOSE);
}
void loop()
{
static int z = 20202;
ESP_LOGI(TAG_TEST, "Message Here! %/d", z);
delay(1000);
}