|
| virtual | ~BaseLogger () noexcept=default |
| | Virtual destructor.
|
| |
| virtual hf_logger_err_t | Initialize (const hf_logger_config_t &config) noexcept=0 |
| | Initialize the logger.
|
| |
| virtual hf_logger_err_t | Deinitialize () noexcept=0 |
| | Deinitialize the logger.
|
| |
| virtual bool | IsInitialized () const noexcept=0 |
| | Check if logger is initialized.
|
| |
| virtual bool | EnsureInitialized () noexcept=0 |
| | Ensure logger is initialized (lazy initialization)
|
| |
| virtual hf_logger_err_t | SetLogLevel (const char *tag, hf_log_level_t level) noexcept=0 |
| | Set log level for a specific tag.
|
| |
| virtual hf_logger_err_t | GetLogLevel (const char *tag, hf_log_level_t &level) const noexcept=0 |
| | Get log level for a specific tag.
|
| |
| virtual hf_logger_err_t | Error (const char *tag, const char *format,...) noexcept=0 |
| | Log a message at ERROR level.
|
| |
| virtual hf_logger_err_t | Warn (const char *tag, const char *format,...) noexcept=0 |
| | Log a message at WARN level.
|
| |
| virtual hf_logger_err_t | Info (const char *tag, const char *format,...) noexcept=0 |
| | Log a message at INFO level.
|
| |
| virtual hf_logger_err_t | Debug (const char *tag, const char *format,...) noexcept=0 |
| | Log a message at DEBUG level.
|
| |
| virtual hf_logger_err_t | Verbose (const char *tag, const char *format,...) noexcept=0 |
| | Log a message at VERBOSE level.
|
| |
| virtual hf_logger_err_t | Log (hf_log_level_t level, const char *tag, const char *format,...) noexcept=0 |
| | Log a message at specified level.
|
| |
| virtual hf_logger_err_t | LogV (hf_log_level_t level, const char *tag, const char *format, va_list args) noexcept=0 |
| | Log a message with va_list (for internal use)
|
| |
| virtual hf_logger_err_t | LogWithLocation (hf_log_level_t level, const char *tag, const char *file, hf_u32_t line, const char *function, const char *format,...) noexcept=0 |
| | Log a message with file and line information.
|
| |
| virtual hf_logger_err_t | Flush () noexcept=0 |
| | Flush any buffered output.
|
| |
| virtual bool | IsLevelEnabled (hf_log_level_t level, const char *tag=nullptr) const noexcept=0 |
| | Check if a log level is enabled for a tag.
|
| |
| virtual hf_logger_err_t | GetStatistics (hf_logger_statistics_t &statistics) const noexcept=0 |
| | Get logger statistics.
|
| |
| virtual hf_logger_err_t | GetDiagnostics (hf_logger_diagnostics_t &diagnostics) const noexcept=0 |
| | Get logger diagnostics.
|
| |
| virtual hf_logger_err_t | ResetStatistics () noexcept=0 |
| | Reset statistics.
|
| |
| virtual hf_logger_err_t | ResetDiagnostics () noexcept=0 |
| | Reset diagnostics.
|
| |
| virtual bool | IsHealthy () const noexcept=0 |
| | Check if logger is healthy.
|
| |
| virtual hf_logger_err_t | GetLastError () const noexcept=0 |
| | Get last error code.
|
| |
| virtual hf_logger_err_t | GetLastErrorMessage (char *message, hf_u32_t max_length) const noexcept=0 |
| | Get last error message.
|
| |
| virtual hf_logger_err_t | PrintStatistics (const char *tag=nullptr, bool detailed=true) const noexcept=0 |
| | Print statistics to log output.
|
| |
| virtual hf_logger_err_t | PrintDiagnostics (const char *tag=nullptr, bool detailed=true) const noexcept=0 |
| | Print diagnostics to log output.
|
| |
| virtual hf_logger_err_t | PrintStatus (const char *tag=nullptr, bool detailed=true) const noexcept=0 |
| | Print both statistics and diagnostics.
|
| |
Base logger abstract class.
This class provides a comprehensive logging abstraction that supports:
- Multiple log levels (ERROR, WARN, INFO, DEBUG, VERBOSE)
- Thread-safe operations
- Configurable output destinations
- Performance monitoring and statistics
- Error handling and diagnostics
- Custom output callbacks
- Message formatting and buffering