|
libpsynth 0.2.1
|
Logs messages to a standard stream. More...
#include <logger.hpp>


Public Member Functions | |
| log_stream_sink () | |
| Constructor. | |
| log_stream_sink (const log_stream_sink &s) | |
| Copy constructor. | |
| log_stream_sink (std::ostream &os) | |
| Constructor with a stream. | |
| void | dump (log &l, int level, const std::string &msg) |
| Dums a message to a stream. | |
Protected Member Functions | |
| void | set_stream (std::ostream &os) |
Logs messages to a standard stream.
The messages will look like this: [log_node_name] MSG_LEVEL : Message.
| psynth::base::log_stream_sink::log_stream_sink | ( | ) | [inline] |
Constructor.
| psynth::base::log_stream_sink::log_stream_sink | ( | const log_stream_sink & | s | ) | [inline] |
Copy constructor.
| psynth::base::log_stream_sink::log_stream_sink | ( | std::ostream & | os | ) | [inline] |
Constructor with a stream.
| void psynth::base::log_stream_sink::dump | ( | log & | l, |
| int | level, | ||
| const std::string & | msg | ||
| ) | [inline, virtual] |
Dums a message to a stream.
| log | The log that originated the message. |
| level | The relevance of the message. |
| msg | The message to dump. |
Implements psynth::base::log_sink.
| void psynth::base::log_stream_sink::set_stream | ( | std::ostream & | os | ) | [inline, protected] |
1.7.4