Logo
Reference manual - version ored_version
IndependentLogger Class Referenceabstract

Base Log handler class that utilises Boost logging to create log sinks. More...

#include <ored/utilities/log.hpp>

Inheritance diagram for IndependentLogger:

Public Member Functions

virtual ~IndependentLogger ()
 Destructor.
virtual void removeSinks ()=0
std::vector< std::string > & messages ()
void clear ()
const std::string & name () const
 Returns the Logger name.

Protected Member Functions

 IndependentLogger (const std::string &name)
 Constructor.
boost::shared_mutex & mutex ()
 mutex to acquire locks

Protected Attributes

std::vector< std::string > messages_

Detailed Description

Base Log handler class that utilises Boost logging to create log sinks.

This type of logger should only be received via Log::registerIndependentLoggers(). It is responsible for creating and maintaining Boost log sink/s and nothing more.

See also
Log

Constructor & Destructor Documentation

◆ IndependentLogger()

IndependentLogger ( const std::string & name)
protected

Constructor.

Implementations must provide a logger name

Parameters
namethe logger name

Member Function Documentation

◆ removeSinks()

virtual void removeSinks ( )
pure virtual