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