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 
10 namespace wibble {
11 namespace log {
12 
14 struct SyslogSender : public Sender
15 {
16 protected:
17  void* out;
18  std::string name;
19 
20 public:
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
wibble::log::Level
Level
Urgency of a log message.
Definition: stream.h:11
wibble::log::CRIT
@ CRIT
Definition: stream.h:18
macros.h
wibble::log::DEBUG
@ DEBUG
Definition: stream.h:13
wibble::log::ERR
@ ERR
Definition: stream.h:17
wibble::log::UNUSUAL
@ UNUSUAL
Definition: stream.h:15
wibble::log::INFO
@ INFO
Definition: stream.h:14
stream.h
syslog.h
wibble
Definition: amorph.h:17
wibble::log::WARN
@ WARN
Definition: stream.h:16