Streambuf class for logging.
More...
#include <stream.h>
|
void | send () |
| Send the message "line" with the level "level". More...
|
|
Streambuf class for logging.
wibble::log::Streambuf::Streambuf |
( |
) | |
|
Construct a nonworking Streambuf to be initialised later.
wibble::log::Streambuf::Streambuf |
( |
Sender * |
s) | |
|
- Parameters
-
s | The sender to use to send log messages. Streambuf will just use the pointer, but will not take over memory maintenance |
wibble::log::Streambuf::~Streambuf |
( |
) | |
|
|
virtual |
int wibble::log::Streambuf::overflow |
( |
int |
c) | |
|
override to get data as a std::streambuf
References line, and send().
void wibble::log::Streambuf::send |
( |
) | |
|
|
protected |
void wibble::log::Streambuf::send_partial_line |
( |
) | |
|
void wibble::log::Streambuf::setLevel |
( |
const Level & |
level) | |
|
Set the level for the next message, and the next message only.
References level.
void wibble::log::Streambuf::setSender |
( |
Sender * |
s) | |
|
Set/change the sender to use for this streambuf.
References sender.
const Level wibble::log::Streambuf::defaultLevel = INFO |
|
staticprotected |
Level to use for messages whose level has not been specified.
Referenced by send().
Level wibble::log::Streambuf::level |
|
protected |
std::string wibble::log::Streambuf::line |
|
protected |
Sender* wibble::log::Streambuf::sender |
|
protected |
The documentation for this class was generated from the following files: