wibble 1.1
syslog.h
Go to the documentation of this file.
1#include <wibble/sys/macros.h>
2
3#ifdef POSIX
4#ifndef WIBBLE_LOG_SYSLOG_H
5#define WIBBLE_LOG_SYSLOG_H
6
7#include <wibble/log/stream.h>
8#include <syslog.h>
9
10namespace wibble {
11namespace log {
12
14struct SyslogSender : public Sender
15{
16protected:
17 void* out;
18 std::string name;
19
20public:
21 SyslogSender(const std::string& ident, int option = LOG_PID, int facility = LOG_USER);
22 virtual ~SyslogSender();
23
24 virtual void send(Level level, const std::string& msg);
25};
26
27}
28}
29
30// vim:set ts=4 sw=4:
31#endif
32#endif
Definition amorph.h:17