summaryrefslogtreecommitdiff
path: root/include/logger/SyslogLogSink.hpp
blob: 64e52f1248a2a17419bf5e3d4d29a6d382c0168d (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( );
		
		void log( const LogLevel level, const std::string &msg );
		
		static int levelToSyslogLevel( const LogLevel level );
		static int facilityFromString( const std::string &facility );
		
	private:
		std::string m_ident;
		std::string m_facility;
};

#endif