ChaosDMX
Open-Source DMX-Interface
Loading...
Searching...
No Matches
logger.h File Reference

Project-wide logging macros based on ESP-IDF's logging library. More...

#include "esp_log.h"
Include dependency graph for logger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LOG_TAG   "CHAOS"
 Default log tag.
#define LOGE(...)
 Log a message at Error level.
#define LOGW(...)
 Log a message at Warning level.
#define LOGI(...)
 Log a message at Info level.
#define LOGD(...)
 Log a message at Debug level.
#define LOGV(...)
 Log a message at Verbose level.

Detailed Description

Project-wide logging macros based on ESP-IDF's logging library.

This header provides a set of simple logging macros (LOGE, LOGW, LOGI, etc.) that wrap the underlying ESP-IDF logging functions (esp_log_e, esp_log_w, etc.).

Usage

To use these macros, a LOG_TAG should be defined before including this header. The LOG_TAG is a string that identifies the source of the log messages, typically the component or file name. If LOG_TAG is not defined, a default tag "CHAOS" will be used.

Definition in file logger.h.

Macro Definition Documentation

◆ LOG_TAG

#define LOG_TAG   "CHAOS"

Default log tag.

Definition at line 34 of file logger.h.

◆ LOGD

#define LOGD ( ...)
Value:
ESP_LOGD(LOG_TAG, __VA_ARGS__)
#define LOG_TAG
Logging tag for the button actions component.

Log a message at Debug level.

Definition at line 44 of file logger.h.

◆ LOGE

◆ LOGI

◆ LOGV

#define LOGV ( ...)
Value:
ESP_LOGV(LOG_TAG, __VA_ARGS__)

Log a message at Verbose level.

Definition at line 46 of file logger.h.

◆ LOGW

#define LOGW ( ...)
Value:
ESP_LOGW(LOG_TAG, __VA_ARGS__)

Log a message at Warning level.

Definition at line 40 of file logger.h.

Referenced by app_main(), config_init(), static_file_handler(), system_init(), and webserver_start().