#include <OnixS/CME/MDH/Logger.h>
Populate an entry returned by Logger::addEntry(), then call commit(). Clients must not delete entries directly or access an entry after committing it.
Definition at line 157 of file Logger.h.
◆ LogEntry()
Initializes an entry for use by a concrete logger implementation.
◆ ~LogEntry()
Finalizes an entry whose lifetime is managed by its logger.
◆ category()
Sets the category of the entry.
- Parameters
-
| value | Category describing the entry. |
- Exceptions
-
| Any | exception propagated by the concrete logger implementation. |
◆ commit()
Submits the entry to the logger and releases it.
The entry may cease to exist during this call. Do not access it after invoking this function.
- Exceptions
-
| Any | exception propagated by the concrete logger implementation. |
◆ message()
| virtual std::string & message |
( |
| ) |
|
|
pure virtual |
Provides mutable access to the entry message.
- Returns
- Message buffer, valid until commit() is called.
- Exceptions
-
| Any | exception propagated by the concrete logger implementation. |
◆ source()
Sets the component or subsystem that produced the entry.
- Parameters
-
| value | Source identifier to assign to the entry. |
- Exceptions
-
| Any | exception propagated by the concrete logger implementation. |