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

Uptime format, used to write the up-time of the logging core to the log format. More...

#include <error/LogCustomizableFormatter.h>

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

Public Member Functions

 Uptime (const std::string &iFormat=boost::local_time::local_time_facet::default_time_duration_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

Uptime format, used to write the up-time of the logging core to the log format.

Constructor & Destructor Documentation

◆ Uptime()

Uptime ( const std::string &  iFormat = boost::local_time::local_time_facet::default_time_duration_format)
inline

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: