Logo
Reference manual - version ored_version
ProgressLogger Class Reference

#include <ored/utilities/log.hpp>

Inheritance diagram for ProgressLogger:

Public Member Functions

 ProgressLogger ()
 Constructors.
 ProgressLogger (const bool coutLog)
const boost::shared_ptr< file_sink > & fileSink ()
const boost::shared_ptr< text_sink > & coutSink ()
const boost::shared_ptr< text_sink > & cacheSink ()
virtual void removeSinks () override
 Destructor.
void setCoutLog (bool flag)
void setFileLog (const std::string &filepath, const boost::filesystem::path &dir, QuantLib::Size rotationSize=0)
Public Member Functions inherited from IndependentLogger
virtual ~IndependentLogger ()
 Destructor.
std::vector< std::string > & messages ()
void clear ()
const std::string & name () const
 Returns the Logger name.

Static Public Attributes

static const std::string name
 the name "ProgressLogger"

Additional Inherited Members

Protected Member Functions inherited from IndependentLogger
 IndependentLogger (const std::string &name)
 Constructor.
boost::shared_mutex & mutex ()
 mutex to acquire locks
Protected Attributes inherited from IndependentLogger
std::vector< std::string > messages_

Detailed Description

ProgressLogger //! This logger stores each log message in a separate location indicating progress of analytic runs.

Member Function Documentation

◆ removeSinks()

virtual void removeSinks ( )
overridevirtual

Destructor.

Implements IndependentLogger.