#include <abstractadditionallogger.h>
Interface for all additional loggers that can be attached to the Journaller
Definition at line 74 of file abstractadditionallogger.h.
◆ ~AbstractAdditionalLogger()
virtual AbstractAdditionalLogger::~AbstractAdditionalLogger |
( |
| ) |
|
|
inlinevirtual |
◆ debugLevel()
◆ log()
virtual void AbstractAdditionalLogger::log |
( |
JournalLogLevel |
level, |
|
|
char const * |
file, |
|
|
int |
line, |
|
|
char const * |
function, |
|
|
std::string const & |
msg |
|
) |
| |
|
pure virtual |
Write line to the log.
- Parameters
-
[in] | level | The log level |
[in] | file | The name of the file from which the logging originates |
[in] | line | The line number from which the logging originates |
[in] | function | The name of the function from which the logging originates |
[in] | msg | The actual log message |
Implemented in ConsoleLogger.
◆ logLevel() [1/2]
◆ logLevel() [2/2]
virtual bool AbstractAdditionalLogger::logLevel |
( |
JournalLogLevel |
level | ) |
const |
|
pure virtual |
- Returns
- true if loglevel level should be logged, false otherwise
- Parameters
-
[in] | level | The log level to check |
Implemented in AdditionalLoggerBase.
◆ logNoDecoration()
virtual void AbstractAdditionalLogger::logNoDecoration |
( |
JournalLogLevel |
level, |
|
|
char const * |
file, |
|
|
int |
line, |
|
|
char const * |
function, |
|
|
std::string const & |
msg |
|
) |
| |
|
pure virtual |
Write line to the log without decoration (timestamp, thread)
- Parameters
-
[in] | level | The log level |
[in] | file | The name of the file from which the logging originates |
[in] | line | The line number from which the logging originates |
[in] | function | The name of the function from which the logging originates |
[in] | msg | The actual log message |
Implemented in AdditionalLoggerBase.
◆ setDebugLevel()
virtual void AbstractAdditionalLogger::setDebugLevel |
( |
JournalLogLevel |
level | ) |
|
|
pure virtual |
Set the current debug log level.
- Parameters
-
[in] | level | The new debug log level |
Implemented in AdditionalLoggerBase.
◆ setLogLevel()
virtual void AbstractAdditionalLogger::setLogLevel |
( |
JournalLogLevel |
level | ) |
|
|
pure virtual |
Set the current log level.
- Parameters
-
[in] | level | The new log level |
Implemented in AdditionalLoggerBase.
The documentation for this class was generated from the following file: