Logo
Reference manual - version ored_version
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 boost::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.
boost::shared_mutex & mutex ()
 mutex to acquire locks
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()

EventLogger ( )

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

Member Function Documentation

◆ removeSinks()

virtual void removeSinks ( )
overridevirtual

Destructor.

Implements IndependentLogger.