|
MIRA
|
Abstract base class for all log sinks. More...
#include <error/LoggingCore.h>

Public Member Functions | |
| virtual | ~LogSink () |
| Destructor. More... | |
| void | aboutToConsume (const LogRecord &record) |
| Is called by LogCore singleton whenever a new log record is written. More... | |
| virtual void | consume (const LogRecord &record)=0 |
| Overwrite this in derived class. More... | |
| void | resetFilter () |
| Resets the log filter. More... | |
| template<typename T > | |
| LogFilterPtr | setFilter (const T &filter) |
| Set the filter. More... | |
| void | resetFormatter () |
| Resets the formatter. More... | |
| template<typename T > | |
| LogFormatterPtr | setFormatter (const T &formatter) |
| Set the formatter. More... | |
Protected Attributes | |
| LogFormatterPtr | mFormatter |
| LogFilterPtr | mFilter |
Abstract base class for all log sinks.
|
inlinevirtual |
Destructor.
| void aboutToConsume | ( | const LogRecord & | record | ) |
Is called by LogCore singleton whenever a new log record is written.
| record | The log entry. |
|
pure virtual |
Overwrite this in derived class.
Is called for each log entry that passes the filter (if any)
| record | The log entry. |
Implemented in LogFileSink, LogConsoleSink, and LogTxtStreamSink.
|
inline |
Resets the log filter.
No filter will be used to filter log entries.
|
inline |
Set the filter.
The filter must be copy constructible since we are creating a copy and inherited from LogFilterBase.
| filter | The filter object |
|
inline |
Resets the formatter.
No formatter will be used to format log entries.
|
inline |
Set the formatter.
The formatter must be copy constructible since we are creating a copy and inherited from LogFormatterBase.
| formatter | The formatter object |
|
protected |
|
protected |
1.8.14