FinanceSim 0.1.0
Financial Simulation Library
Loading...
Searching...
No Matches
financesim::LogWriter Class Referenceabstract

Interface for log output writers. More...

#include <log_writer.hpp>

Inheritance diagram for financesim::LogWriter:
[legend]

Public Member Functions

virtual ~LogWriter ()=default
 
virtual void write (const Event &event, LogLevel level)=0
 Write an event to the output.
 
virtual void flush ()=0
 Flush any buffered output.
 
virtual void close ()=0
 Close the writer and release resources.
 

Protected Member Functions

 LogWriter ()=default
 

Detailed Description

Interface for log output writers.

Definition at line 12 of file log_writer.hpp.

Constructor & Destructor Documentation

◆ ~LogWriter()

virtual financesim::LogWriter::~LogWriter ( )
virtualdefault

◆ LogWriter()

financesim::LogWriter::LogWriter ( )
protecteddefault

Member Function Documentation

◆ close()

virtual void financesim::LogWriter::close ( )
pure virtual

Close the writer and release resources.

Implemented in financesim::ConsoleWriter, and financesim::JsonWriter.

Referenced by PYBIND11_MODULE().

Here is the caller graph for this function:

◆ flush()

virtual void financesim::LogWriter::flush ( )
pure virtual

Flush any buffered output.

Implemented in financesim::ConsoleWriter, and financesim::JsonWriter.

Referenced by PYBIND11_MODULE().

Here is the caller graph for this function:

◆ write()

virtual void financesim::LogWriter::write ( const Event event,
LogLevel  level 
)
pure virtual

Write an event to the output.

Implemented in financesim::ConsoleWriter, and financesim::JsonWriter.


The documentation for this class was generated from the following file: