#ifndef __SYSLOG_LOGSINK_H #define __SYSLOG_LOGSINK_H #include "LogSink.hpp" #include 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