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

Interface of a log sink. More...

#include <logger.hpp>

Inheritance diagram for psynth::base::log_sink:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void dump (log &log, int level, const std::string &msg)=0
 Deliver a message to the user.

Detailed Description

Interface of a log sink.

A log sink is an object that implements how log messages are actually delivered to the user.


Member Function Documentation

virtual void psynth::base::log_sink::dump ( log log,
int  level,
const std::string &  msg 
) [pure virtual]

Deliver a message to the user.

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

Implemented in psynth::base::log_std_sink, and psynth::base::log_stream_sink.


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