#include <ored/utilities/log.hpp>
Public Member Functions | |
ProgressLogger () | |
Constructors. More... | |
ProgressLogger (const bool coutLog) | |
const QuantLib::ext::shared_ptr< file_sink > & | fileSink () |
const QuantLib::ext::shared_ptr< text_sink > & | coutSink () |
const QuantLib::ext::shared_ptr< text_sink > & | cacheSink () |
virtual void | removeSinks () override |
Destructor. More... | |
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. More... | |
virtual void | removeSinks ()=0 |
std::vector< std::string > & | messages () |
void | clear () |
const std::string & | name () const |
Returns the Logger name. More... | |
Static Public Attributes | |
static const std::string | name = "ProgressLogger" |
the name "ProgressLogger" More... | |
Private Attributes | |
QuantLib::ext::shared_ptr< file_sink > | fileSink_ |
QuantLib::ext::shared_ptr< text_sink > | coutSink_ |
QuantLib::ext::shared_ptr< text_sink > | cacheSink_ |
Additional Inherited Members | |
Protected Member Functions inherited from IndependentLogger | |
IndependentLogger (const std::string &name) | |
Constructor. More... | |
Protected Attributes inherited from IndependentLogger | |
std::vector< std::string > | messages_ |
ProgressLogger //! This logger stores each log message in a separate location indicating progress of analytic runs.
ProgressLogger | ( | ) |
Constructors.
Definition at line 103 of file log.cpp.
ProgressLogger | ( | const bool | coutLog | ) |
const QuantLib::ext::shared_ptr< file_sink > & fileSink | ( | ) |
Definition at line 298 of file log.hpp.
const QuantLib::ext::shared_ptr< text_sink > & coutSink | ( | ) |
Definition at line 299 of file log.hpp.
const QuantLib::ext::shared_ptr< text_sink > & cacheSink | ( | ) |
|
overridevirtual |
void setCoutLog | ( | bool | flag | ) |
Definition at line 164 of file log.cpp.
void setFileLog | ( | const std::string & | filepath, |
const boost::filesystem::path & | dir, | ||
QuantLib::Size | rotationSize = 0 |
||
) |
Definition at line 144 of file log.cpp.
|
static |