Boboter
Loading...
Searching...
No Matches
logger.h File Reference
#include <esp_log.h>
#include <freertos/FreeRTOS.h>

Go to the source code of this file.

Classes

class  Logger
struct  Logger::log_item

Macros

#define LOGV(format, ...)
#define LOGD(format, ...)
#define LOGI(format, ...)
#define LOGW(format, ...)
#define LOGE(format, ...)

Detailed Description

Authors
MarioS271

Macro Definition Documentation

◆ LOGD

#define LOGD ( format,
... )
Value:
Logger::get_instance().custom_log(ESP_LOG_DEBUG, TAG, format, ##__VA_ARGS__)
void custom_log(esp_log_level_t level, const char *tag, const char *format,...) const __attribute__((format(printf
Either directly invokes render_to_console (real mode) or sends to the queue (queue mode).
Definition logger.cpp:40
static Logger & get_instance()
Returns a reference to the static logger instance.
Definition logger.h:36

◆ LOGE

#define LOGE ( format,
... )
Value:
Logger::get_instance().custom_log(ESP_LOG_ERROR, TAG, format, ##__VA_ARGS__)

◆ LOGI

#define LOGI ( format,
... )
Value:
Logger::get_instance().custom_log(ESP_LOG_INFO, TAG, format, ##__VA_ARGS__)

◆ LOGV

#define LOGV ( format,
... )
Value:
Logger::get_instance().custom_log(ESP_LOG_VERBOSE, TAG, format, ##__VA_ARGS__)

◆ LOGW

#define LOGW ( format,
... )
Value:
Logger::get_instance().custom_log(ESP_LOG_WARN, TAG, format, ##__VA_ARGS__)