2012-07-10 13:31:17 +02:00
|
|
|
#ifndef SYSLOGLOGGER_H
|
|
|
|
#define SYSLOGLOGGER_H
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A logger that logs to syslog.
|
|
|
|
*/
|
|
|
|
class SyslogLogger : public Logger
|
|
|
|
{
|
|
|
|
public:
|
2012-07-10 15:14:45 +02:00
|
|
|
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);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* SYSLOGLOGGER_H */
|