libpsynth 0.2.1
Public Member Functions
psynth::base::log_std_sink Class Reference

Simple log sink that logs messages to cout and cerr. More...

#include <logger.hpp>

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

List of all members.

Public Member Functions

void dump (log &l, int level, const std::string &msg)
 Dums a message to the standard output.

Detailed Description

Simple log sink that logs messages to cout and cerr.

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

Messages with relevales less or equal to INFO will be dumped to cout and others to cerr.


Member Function Documentation

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

Dums a message to the standard output.

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

Implements psynth::base::log_sink.


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