9#include <framework/logging/LogConnectionFilter.h>
15 m_logConnection(logConnection),
16 m_previousMessage(
LogConfig::c_Default,
"",
"",
"",
"", 0),
54 const std::string message{
" ... message repeated " + std::to_string(
m_repeatCounter) +
" times"};
@ c_Message
Log message text.
Abstract base class for the different types of log connections.
std::unique_ptr< LogConnectionBase > m_logConnection
The actual log connection.
void printRepetitions()
If there are repeated messages print the number of repetitions.
int m_repeatCounter
Counter for repeated messages.
virtual ~LogConnectionFilter()
The LogConnectionFilter destructor.
LogConnectionFilter(LogConnectionBase *logConnection)
The constructor.
LogMessage m_previousMessage
The previous log message.
bool isConnected() override
Returns true if the log connection could be established.
bool sendMessage(const LogMessage &message) override
Sends a log message.
void setLogInfo(unsigned int logInfo)
Configure which information should be printed.
LogConfig::ELogLevel getLogLevel() const
Returns the log level of the message.
Abstract base class for different kinds of events.