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