ESP_LOGX tags not appearing (using esp32-hal-log.h).

LysisofPie
Posts: 3
Joined: Thu Dec 27, 2018 9:50 pm

ESP_LOGX tags not appearing (using esp32-hal-log.h).

Postby LysisofPie » 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:

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);
}
Many thanks in advance!

shyney
Posts: 2
Joined: Mon Jul 24, 2023 7:58 am

Re: ESP_LOGX tags not appearing (using esp32-hal-log.h).

Postby shyney » Tue Jul 25, 2023 8:56 am

Have you been able to solve this problem? I'm having the exact same problem and cant find a solution?

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 55 guests