M5Unified
|
#include "m5unified_common.h"
#include <esp_log.h>
#include <stdarg.h>
#include <functional>
#include <M5GFX.h>
Go to the source code of this file.
Classes | |
class | m5::Log_Class |
Namespaces | |
m5 | |
Macros | |
#define | M5UNIFIED_LOG_FORMAT(letter, format) "[%6u][" #letter "][%s:%u] %s(): " format, m5gfx::millis(), m5::Log_Class::pathToFileName(__FILE__), __LINE__, __FUNCTION__ |
Output log with source info. More... | |
#define | M5_LOGE(format, ...) M5.Log(ESP_LOG_ERROR , M5UNIFIED_LOG_FORMAT(E, format), ##__VA_ARGS__) |
Output Error log with source info. More... | |
#define | M5_LOGW(format, ...) M5.Log(ESP_LOG_WARN , M5UNIFIED_LOG_FORMAT(W, format), ##__VA_ARGS__) |
Output Warn log with source info. More... | |
#define | M5_LOGI(format, ...) M5.Log(ESP_LOG_INFO , M5UNIFIED_LOG_FORMAT(I, format), ##__VA_ARGS__) |
Output Info log with source info. More... | |
#define | M5_LOGD(format, ...) M5.Log(ESP_LOG_DEBUG , M5UNIFIED_LOG_FORMAT(D, format), ##__VA_ARGS__) |
Output Debug log with source info. More... | |
#define | M5_LOGV(format, ...) M5.Log(ESP_LOG_VERBOSE, M5UNIFIED_LOG_FORMAT(V, format), ##__VA_ARGS__) |
Output Verbose log with source info. More... | |
Enumerations | |
enum | m5::log_target_t : uint8_t { m5::log_target_serial , m5::log_target_display , m5::log_target_callback , m5::log_target_max } |
#define M5_LOGD | ( | format, | |
... | |||
) | M5.Log(ESP_LOG_DEBUG , M5UNIFIED_LOG_FORMAT(D, format), ##__VA_ARGS__) |
Output Debug log with source info.
Definition at line 33 of file Log_Class.hpp.
#define M5_LOGE | ( | format, | |
... | |||
) | M5.Log(ESP_LOG_ERROR , M5UNIFIED_LOG_FORMAT(E, format), ##__VA_ARGS__) |
Output Error log with source info.
Definition at line 24 of file Log_Class.hpp.
#define M5_LOGI | ( | format, | |
... | |||
) | M5.Log(ESP_LOG_INFO , M5UNIFIED_LOG_FORMAT(I, format), ##__VA_ARGS__) |
Output Info log with source info.
Definition at line 30 of file Log_Class.hpp.
#define M5_LOGV | ( | format, | |
... | |||
) | M5.Log(ESP_LOG_VERBOSE, M5UNIFIED_LOG_FORMAT(V, format), ##__VA_ARGS__) |
Output Verbose log with source info.
Definition at line 36 of file Log_Class.hpp.
#define M5_LOGW | ( | format, | |
... | |||
) | M5.Log(ESP_LOG_WARN , M5UNIFIED_LOG_FORMAT(W, format), ##__VA_ARGS__) |
Output Warn log with source info.
Definition at line 27 of file Log_Class.hpp.
#define M5UNIFIED_LOG_FORMAT | ( | letter, | |
format | |||
) | "[%6u][" #letter "][%s:%u] %s(): " format, m5gfx::millis(), m5::Log_Class::pathToFileName(__FILE__), __LINE__, __FUNCTION__ |
Output log with source info.
Definition at line 20 of file Log_Class.hpp.