MIRA
Public Member Functions | Public Attributes | List of all members
LogCustomizableFormatter::Time Class Reference

Time format, used to write the time of the log entry to the log format. More...

#include <error/LogCustomizableFormatter.h>

Inheritance diagram for LogCustomizableFormatter::Time:
Inheritance graph
[legend]

Public Member Functions

 Time (const std::string &iFormat=boost::local_time::local_time_facet::default_time_format)
 
void format (const LogRecord &record, std::ostringstream &ioStream)
 Called by LogCustomizableFormatter whenever a new log entry is getting formatted. More...
 

Public Attributes

boost::shared_ptr< boost::posix_time::time_facet > timeFacet
 

Detailed Description

Time format, used to write the time of the log entry to the log format.

Constructor & Destructor Documentation

◆ Time()

Time ( const std::string &  iFormat = boost::local_time::local_time_facet::default_time_format)
inline
Parameters
iFormatThe format for the time to string conversion. (see http://www.boost.org/doc/libs/1_35_0/doc/html/date_time/date_time_io.html#date%5Ftime.format%5Fflags )

Member Function Documentation

◆ format()

void format ( const LogRecord record,
std::ostringstream &  ioStream 
)
inlinevirtual

Called by LogCustomizableFormatter whenever a new log entry is getting formatted.

Writes the formatted data to ioStream.

Parameters
recordThe log entry
ioStreamThe stream the formatted data gets written to.

Implements LogCustomizableFormatter::CustomFormatBase.

Member Data Documentation

◆ timeFacet

boost::shared_ptr<boost::posix_time::time_facet> timeFacet

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