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
6namespace wibble {
7namespace log {
8
10struct 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
Level
Urgency of a log message.
Definition stream.h:12
Definition amorph.h:17
Discard all messages.
Definition null.h:11
virtual ~NullSender()
Definition null.h:12
virtual void send(Level level, const std::string &msg)
Log one line of text with the given level.
Definition null.h:13
Handle sending a log message.
Definition stream.h:23