Avara3D 0.2.0
C++ API reference
a3d::log::LogSink Class Referenceabstract

Interface for destinations that receive formatted Log output. More...

#include <a3d/log/sink/LogSink.h>

Inheritance diagram for a3d::log::LogSink:
[legend]

Public Member Functions

virtual void write (const std::string &output, Level level)=0
 Writes already-formatted output associated with level. More...
 
virtual void flush ()
 Flushes buffered sink output; the base implementation does nothing. More...
 

Detailed Description

Interface for destinations that receive formatted Log output.

Definition at line 19 of file LogSink.h.

Member Function Documentation

◆ flush()

virtual void a3d::log::LogSink::flush ( )
virtual

Flushes buffered sink output; the base implementation does nothing.

Reimplemented in a3d::log::FileLogSink, and a3d::log::StdOutLogSink.

◆ write()

virtual void a3d::log::LogSink::write ( const std::string &  output,
Level  level 
)
pure virtual

Writes already-formatted output associated with level.

Implemented in a3d::log::FileLogSink, and a3d::log::StdOutLogSink.


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