All logging-related types, enums, and functions for system logging.
More...
|
| file | BaseLogger.h |
| | Unified logging base class for all logging implementations.
|
| |
| file | EspLogger.h |
| | ESP32-specific logger implementation for the HardFOC system.
|
| |
|
| enum class | hf_log_level_t : hf_u8_t {
hf_log_level_t::LOG_LEVEL_NONE = 0
, hf_log_level_t::LOG_LEVEL_ERROR = 1
, hf_log_level_t::LOG_LEVEL_WARN = 2
, hf_log_level_t::LOG_LEVEL_INFO = 3
,
hf_log_level_t::LOG_LEVEL_DEBUG = 4
, hf_log_level_t::LOG_LEVEL_VERBOSE = 5
} |
| | Log levels enumeration. More...
|
| |
| enum class | hf_log_output_t : hf_u8_t {
hf_log_output_t::LOG_OUTPUT_NONE = 0
, hf_log_output_t::LOG_OUTPUT_UART = 1
, hf_log_output_t::LOG_OUTPUT_USB = 2
, hf_log_output_t::LOG_OUTPUT_FILE = 3
,
hf_log_output_t::LOG_OUTPUT_NETWORK = 4
, hf_log_output_t::LOG_OUTPUT_CUSTOM = 5
} |
| | Log output destination enumeration. More...
|
| |
| enum class | hf_log_format_t : hf_u32_t {
hf_log_format_t::LOG_FORMAT_NONE = 0
, hf_log_format_t::LOG_FORMAT_TIMESTAMP = (1U << 0)
, hf_log_format_t::LOG_FORMAT_LEVEL = (1U << 1)
, hf_log_format_t::LOG_FORMAT_TAG = (1U << 2)
,
hf_log_format_t::LOG_FORMAT_FILE_LINE = (1U << 3)
, hf_log_format_t::LOG_FORMAT_FUNCTION = (1U << 4)
, hf_log_format_t::LOG_FORMAT_THREAD_ID = (1U << 5)
, hf_log_format_t::LOG_FORMAT_COLORS = (1U << 6)
,
hf_log_format_t::LOG_FORMAT_DEFAULT = LOG_FORMAT_TIMESTAMP | LOG_FORMAT_LEVEL | LOG_FORMAT_TAG
} |
| | Log format options. More...
|
| |
All logging-related types, enums, and functions for system logging.
This module provides comprehensive logging functionality including:
- Multiple log levels (ERROR, WARN, INFO, DEBUG, VERBOSE)
- Thread-safe logging operations
- Configurable output destinations
- Performance monitoring and statistics
- Error handling and diagnostics
◆ HF_LOGGER_ERR_ENUM
| #define HF_LOGGER_ERR_ENUM |
( |
| name, |
|
|
| value, |
|
|
| description ) name = value, |
Generate logger error enum from macro list.
◆ HF_LOGGER_ERR_LIST
| #define HF_LOGGER_ERR_LIST |
( |
| X | ) |
|
HardFOC Logger error codes macro list.
X-macro pattern for comprehensive error enumeration. Each entry contains: X(NAME, VALUE, DESCRIPTION)
◆ hf_log_format_t
Log format options.
| Enumerator |
|---|
| LOG_FORMAT_NONE | No formatting.
|
| LOG_FORMAT_TIMESTAMP | Include timestamp.
|
| LOG_FORMAT_LEVEL | Include log level.
|
| LOG_FORMAT_TAG | Include tag.
|
| LOG_FORMAT_FILE_LINE | Include file and line.
|
| LOG_FORMAT_FUNCTION | Include function name.
|
| LOG_FORMAT_THREAD_ID | Include thread ID.
|
| LOG_FORMAT_COLORS | Include ANSI colors.
|
| LOG_FORMAT_DEFAULT | |
◆ hf_log_level_t
Log levels enumeration.
| Enumerator |
|---|
| LOG_LEVEL_NONE | No logging.
|
| LOG_LEVEL_ERROR | Error messages only.
|
| LOG_LEVEL_WARN | Warning and error messages.
|
| LOG_LEVEL_INFO | Info, warning, and error messages.
|
| LOG_LEVEL_DEBUG | Debug, info, warning, and error messages.
|
| LOG_LEVEL_VERBOSE | All messages including verbose.
|
◆ hf_log_output_t
Log output destination enumeration.
| Enumerator |
|---|
| LOG_OUTPUT_NONE | No output.
|
| LOG_OUTPUT_UART | UART serial output.
|
| LOG_OUTPUT_USB | USB CDC output.
|
| LOG_OUTPUT_FILE | File system output.
|
| LOG_OUTPUT_NETWORK | Network output.
|
| LOG_OUTPUT_CUSTOM | Custom output callback.
|