blob: 058e126f33e6a9eb4571c905839596694078ef48 (
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
25
|
#ifndef __SYSLOG_LOGSINK_H
#define __SYSLOG_LOGSINK_H
#include "LogSink.hpp"
#include <string>
class SyslogLogSink : public LogSink
{
public:
SyslogLogSink( const LogLevel level, const std::string &ident, const std::string &facility );
~SyslogLogSink( );
LOGGER_DLL_VISIBLE virtual void log( const LogLevel level, const std::string &msg );
LOGGER_DLL_VISIBLE static int levelToSyslogLevel( const LogLevel level );
LOGGER_DLL_VISIBLE static int facilityFromString( const std::string &facility );
private:
std::string m_ident;
std::string m_facility;
};
#endif
|