Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

Qmms::Log::SimpleLayout Class Reference

A Layout much like PatternLayout but with no flexibility. More...

#include <log.hh>

Inheritance diagram for Qmms::Log::SimpleLayout::

Qmms::Log::Layout List of all members.

Public Methods

 SimpleLayout ()
 Default constructor does nothing. More...

 ~SimpleLayout ()
 Destructor does nothing. More...

QString formatEvent (const LoggingEvent *evnt)
 Formats the LoggingEvent according to built-in rules. More...


Static Private Attributes

const QString DEFAULT_DATETIME_FORMAT
 dd-MM-yyyy hh:mm:ss. More...

const QString OPEN_PAREN
const QString CLOSE_PAREN
const QString HYPHEN
const QString COLON_SPACE

Detailed Description

A Layout much like PatternLayout but with no flexibility.

LoggingEvents are formatted according to a built-in set of tokens and this cannot be changed. Use this when speed is essential and the flexibility of a PatternLayout is not needed.


Constructor & Destructor Documentation

Qmms::Log::SimpleLayout::SimpleLayout  
 

Default constructor does nothing.

Qmms::Log::SimpleLayout::~SimpleLayout  
 

Destructor does nothing.


Member Function Documentation

QString Qmms::Log::SimpleLayout::formatEvent const LoggingEvent   evnt [virtual]
 

Formats the LoggingEvent according to built-in rules.

Parameters:
evnt  pointer to the LoggingEvent to format
Returns:
Formatted LoggingEvent as a string

Reimplemented from Qmms::Log::Layout.


Member Data Documentation

const QString Qmms::Log::SimpleLayout::CLOSE_PAREN [static, private]
 

const QString Qmms::Log::SimpleLayout::COLON_SPACE [static, private]
 

const QString Qmms::Log::SimpleLayout::DEFAULT_DATETIME_FORMAT [static, private]
 

dd-MM-yyyy hh:mm:ss.

const QString Qmms::Log::SimpleLayout::HYPHEN [static, private]
 

const QString Qmms::Log::SimpleLayout::OPEN_PAREN [static, private]
 


The documentation for this class was generated from the following file:
Generated on Fri Jan 3 15:04:08 2003 for QmmsLog by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001