CARMA C++
carma::util::FileLayout Class Reference

File layout class for CARMA logging. More...

#include <carma/util/Logger.h>

Inherits Layout.

Public Member Functions

 FileLayout ()
 Default constructor for FileLayout. More...
 
virtual std::string format (const log4cpp::LoggingEvent &event)
 Formats the LoggingEvent in FileLayout style:
"Time {Priority} {Category} {Nested Diagnostic Context} {Message}", where
Time is a FITS timestamp: yyyy-dd-mmThh:mm:ss.ss,
Identity is the parameter passed to getFilelogger(),
Nested Diagnostic Context is a context specific message,
Priority corresponds to the priority levels used by syslog(3),. More...
 
virtual ~FileLayout ()
 Destructor for FileLayout. More...
 

Detailed Description

File layout class for CARMA logging.

Definition at line 243 of file Logger.h.

Constructor & Destructor Documentation

carma::util::FileLayout::FileLayout ( )

Default constructor for FileLayout.

virtual carma::util::FileLayout::~FileLayout ( )
virtual

Destructor for FileLayout.

Member Function Documentation

virtual std::string carma::util::FileLayout::format ( const log4cpp::LoggingEvent &  event)
virtual

Formats the LoggingEvent in FileLayout style:
"Time {Priority} {Category} {Nested Diagnostic Context} {Message}", where
Time is a FITS timestamp: yyyy-dd-mmThh:mm:ss.ss,
Identity is the parameter passed to getFilelogger(),
Nested Diagnostic Context is a context specific message,
Priority corresponds to the priority levels used by syslog(3),.

Parameters
eventThe Logging Event generated by the Category method which passed the original log message.
Returns
The log message formatted according to FileLayout rules.
See Also
log4cpp::LoggingEvent

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