icinga2/base/sysloglogger.h

27 lines
422 B
C++

#ifndef SYSLOGLOGGER_H
#define SYSLOGLOGGER_H
#ifndef _WIN32
namespace icinga
{
/**
* A logger that logs to syslog.
*/
class I2_BASE_API SyslogLogger : public Logger
{
public:
typedef shared_ptr<SyslogLogger> Ptr;
typedef weak_ptr<SyslogLogger> WeakPtr;
SyslogLogger(LogSeverity minSeverity);
protected:
virtual void ProcessLogEntry(const LogEntry& entry);
};
}
#endif /* _WIN32 */
#endif /* SYSLOGLOGGER_H */