icinga2/lib/base/sysloglogger.h

25 lines
382 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.
*/
class I2_BASE_API SyslogLogger : public ILogger
2012-07-10 13:31:17 +02:00
{
public:
typedef shared_ptr<SyslogLogger> Ptr;
typedef weak_ptr<SyslogLogger> WeakPtr;
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 */