Logo
Reference manual - version ored_version
Public Member Functions | Static Public Attributes | List of all members
EventLogger Class Reference

EventLogger. More...

#include <ored/utilities/log.hpp>

+ Inheritance diagram for EventLogger:

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.
 
void setFileLog (const std::string &filepath)
 
- 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 "EventLogger"
 

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_
 

Detailed Description

EventLogger.

This logger listens for EventMessage logs from within ORE to support event logging for ORE components

Constructor & Destructor Documentation

◆ EventLogger()

Constructor This logger will only write event logs. All other logs will be ignored.