#include <ored/utilities/log.hpp>
Public Member Functions | |
EventLogger () | |
void | setFormatter (const std::function< void(const boost::log::record_view &, boost::log::formatting_ostream &)> &) |
const QuantLib::ext::shared_ptr< file_sink > & | fileSink () |
virtual void | removeSinks () override |
Destructor. More... | |
void | setFileLog (const std::string &filepath) |
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 = "EventLogger" |
the name "EventLogger" More... | |
Private Attributes | |
QuantLib::ext::shared_ptr< file_sink > | fileSink_ |
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_ |
This logger listens for EventMessage logs from within ORE to support event logging for ORE components
EventLogger | ( | ) |
Constructor This logger will only write event logs. All other logs will be ignored.
Definition at line 343 of file log.hpp.
void setFormatter | ( | const std::function< void(const boost::log::record_view &, boost::log::formatting_ostream &)> & | formatter | ) |
Definition at line 265 of file log.cpp.
const QuantLib::ext::shared_ptr< file_sink > & fileSink | ( | ) |
|
overridevirtual |
void setFileLog | ( | const std::string & | filepath | ) |
Definition at line 255 of file log.cpp.
|
static |