icinga2/base/sysloglogger.h

27 lines
422 B
C
Raw Normal View History

2012-07-10 13:31:17 +02:00
#ifndef SYSLOGLOGGER_H
#define SYSLOGLOGGER_H
2012-07-10 15:44:59 +02:00
#ifndef _WIN32
2012-07-10 13:31:17 +02:00
namespace icinga
{
/**
* A logger that logs to syslog.
*/
2012-07-10 15:44:59 +02:00
class I2_BASE_API SyslogLogger : public Logger
2012-07-10 13:31:17 +02:00
{
public:
typedef shared_ptr<SyslogLogger> Ptr;
typedef weak_ptr<SyslogLogger> WeakPtr;
2012-07-10 13:32:15 +02:00
SyslogLogger(LogSeverity minSeverity);
2012-07-10 13:31:17 +02:00
protected:
virtual void ProcessLogEntry(const LogEntry& entry);
};
}
2012-07-10 15:44:59 +02:00
#endif /* _WIN32 */
2012-07-10 13:31:17 +02:00
#endif /* SYSLOGLOGGER_H */