blob: 06113f90c8fd84c9a48cdfe1b3e85908cb4c5dbb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef __LOGSINK_H
#define __LOGSINK_H
#include "LoggerExportable.hpp"
#include "Logger.hpp"
class LogSink
{
public:
LogSink( const LogLevel level ) : m_level( level ) { }
virtual ~LogSink( ) { }
LOGGER_DLL_VISIBLE virtual void log( const LogLevel level, const std::string &msg ) = 0;
void setReportingLevel( const LogLevel level ) { m_level = level; }
LogLevel reportingLevel( ) { return m_level; }
private:
LogLevel m_level;
};
#endif
|