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