Skip to content

Esp32 Log Level

DodaTech 1 min read

In this tutorial, you'll learn about ESP32 Log Level Messages Not Appearing. We cover key concepts, practical examples, and best practices.

The Problem

ESP32 log messages below ERROR level are not shown in the serial output.

Quick Fix

Wrong

ESP_LOGI("tag", "Info message");  // Not shown
INFO and DEBUG messages missing. Only ERROR shows.
esp_log_level_set('*", ESP_LOG_VERBOSE);
ESP_LOGE("tag", "Error");
ESP_LOGW("tag", "Warning");
ESP_LOGI("tag", "Info");
ESP_LOGD("tag", "Debug");
ESP_LOGV("tag", "Verbose');
E (123) tag: Error
W (124) tag: Warning
I (125) tag: Info
D (126) tag: Debug
V (127) tag: Verbose

Prevention

Set default log level in menuconfig (CONFIG_LOG_DEFAULT_LEVEL). Use esp_log_level_set() to override at runtime. Higher levels include lower: ERROR includes WARN, INFO, DEBUG, VERBOSE. Set per-tag levels for selective verbosity.

DodaTech engineers apply these same patterns across Doda Browser, DodaZIP, and Durga Antivirus Pro for production IoT reliability.

FAQ

### What log levels does ESP32 support?

ERROR (0), WARN (1), INFO (2), DEBUG (3), VERBOSE (4). NONE suppresses all. Higher numeric level shows more messages.

How do I set default log level?

In menuconfig: Component config -> Log output -> Default log verbosity. Runtime: esp_log_level_set("*", level).

Can I set log level for specific tags?

Yes. esp_log_level_set("wifi", ESP_LOG_WARN) disables INFO and DEBUG for Wi-Fi subsystem while keeping others at higher verbosity.

Built by the developers of DodaTech

Doda Browser, DodaZIP & Durga Antivirus Pro