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