file.h
Go to the documentation of this file.
#ifndef WIBBLE_LOG_FILE_H
#define WIBBLE_LOG_FILE_H
#include <wibble/log/stream.h>
namespace wibble {
namespace log {
struct FileSender : public Sender
{
protected:
int out;
std::string name;
public:
FileSender(const std::string& filename);
virtual ~FileSender();
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:12
wibble
Definition: amorph.h:17
stream.h
wibble::log::FileSender
Discard all messages.
Definition: file.h:11
wibble::log::FileSender::send
virtual void send(Level level, const std::string &msg)
Log one line of text with the given level.
Definition: file.cpp:26
wibble::log::FileSender::~FileSender
virtual ~FileSender()
Definition: file.cpp:21
wibble::log::FileSender::out
int out
Definition: file.h:13
wibble::log::FileSender::FileSender
FileSender(const std::string &filename)
Definition: file.cpp:14
wibble::log::FileSender::name
std::string name
Definition: file.h:14
wibble::log::Sender
Handle sending a log message.
Definition: stream.h:23