libpsynth 0.2.1
Public Member Functions | Protected Member Functions
psynth::base::log_stream_sink Class Reference

Logs messages to a standard stream. More...

#include <logger.hpp>

Inheritance diagram for psynth::base::log_stream_sink:
Inheritance graph
[legend]
Collaboration diagram for psynth::base::log_stream_sink:
Collaboration graph
[legend]

List of all members.

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)

Detailed Description

Logs messages to a standard stream.

The messages will look like this: [log_node_name] MSG_LEVEL : Message.


Constructor & Destructor Documentation

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.


Member Function Documentation

void psynth::base::log_stream_sink::dump ( log l,
int  level,
const std::string &  msg 
) [inline, virtual]

Dums a message to a stream.

Parameters:
logThe log that originated the message.
levelThe relevance of the message.
msgThe message to dump.

Implements psynth::base::log_sink.

void psynth::base::log_stream_sink::set_stream ( std::ostream &  os) [inline, protected]

The documentation for this class was generated from the following file: