Pol  Revision:cb584c9
Pol::Clib::Logging::LogSink Class Referenceabstract

#include <LogSink.h>

+ Inheritance diagram for Pol::Clib::Logging::LogSink:

Public Member Functions

 LogSink ()
 
virtual ~LogSink ()
 
virtual void addMessage (fmt::Writer *msg)=0
 
virtual void addMessage (fmt::Writer *msg, const std::string &id)=0
 

Static Public Member Functions

static void addTimeStamp (std::ostream &stream)
 
static std::string getTimeStamp ()
 

Detailed Description

Definition at line 21 of file LogSink.h.

Constructor & Destructor Documentation

Pol::Clib::Logging::LogSink::LogSink ( )

Definition at line 19 of file LogSink.cpp.

Pol::Clib::Logging::LogSink::~LogSink ( )
virtual

Definition at line 21 of file LogSink.cpp.

Member Function Documentation

virtual void Pol::Clib::Logging::LogSink::addMessage ( fmt::Writer *  msg,
const std::string &  id 
)
pure virtual
void Pol::Clib::Logging::LogSink::addTimeStamp ( std::ostream &  stream)
static

Helper function to print timestamp into stream

Definition at line 25 of file LogSink.cpp.

Referenced by Pol::Clib::Logging::LogSinkGenericFile::addMessage(), and Pol::Clib::Logging::LogSinkGenericFile::open_log_file().

string Pol::Clib::Logging::LogSink::getTimeStamp ( )
static

Formats and returns current time as std::string

Definition at line 30 of file LogSink.cpp.

References Pol::Clib::localtime().

Referenced by Pol::Clib::ExceptionParser::handleExceptionSignal(), and Pol::Clib::ExceptionParser::reportProgramAbort().


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