Singleton logger with non-blocking, thread-safe operation.
More...
#include <MetricsLogger.hpp>
Thread Safety:
- logEvent() is thread-safe for the caller (short mutex-protected enqueue)
- Background thread handles actual I/O
- No blocking on critical safety path
Definition at line 39 of file MetricsLogger.hpp.
◆ MetricsLogger()
◆ ~MetricsLogger()
| MetricsLogger::~MetricsLogger |
( |
| ) |
|
◆ flush()
| void MetricsLogger::flush |
( |
| ) |
|
◆ getInstance()
◆ logEvent()
| void MetricsLogger::logEvent |
( |
const std::string & |
category, |
|
|
const std::string & |
message |
|
) |
| |
- Parameters
-
| category | Event category (e.g., "INIT", "TRANSITION", "ACTION") |
| message | Event message |
This function is non-blocking and suitable for real-time paths. The log entry is queued and processed by a background thread.
- Note
- Thread-safe - can be called from multiple threads
Definition at line 54 of file MetricsLogger.cpp.
◆ operator=()
The documentation for this class was generated from the following files: