wibble  1.1
null.h
Go to the documentation of this file.
1 #ifndef WIBBLE_LOG_NULL_H
2 #define WIBBLE_LOG_NULL_H
3 
4 #include <wibble/log/stream.h>
5 
6 namespace wibble {
7 namespace log {
8 
10 struct NullSender : public Sender
11 {
12  virtual ~NullSender() {}
13  virtual void send(Level level, const std::string& msg) {}
14 };
15 
16 }
17 }
18 
19 // vim:set ts=4 sw=4:
20 #endif
Discard all messages.
Definition: null.h:10
Level
Urgency of a log message.
Definition: stream.h:11
Handle sending a log message.
Definition: stream.h:22
Definition: amorph.h:17
virtual void send(Level level, const std::string &msg)
Log one line of text with the given level.
Definition: null.h:13
virtual ~NullSender()
Definition: null.h:12