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

log4cpp::Layout Class Reference

Extend this abstract class to create your own log layout format. More...

#include <Layout.hh>

Inheritance diagram for log4cpp::Layout:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual ~Layout ()
 Destructor for Layout.

virtual std::string format (const LoggingEvent &event)=0
 Formats the LoggingEvent data to a string that appenders can log. More...


Detailed Description

Extend this abstract class to create your own log layout format.


Constructor & Destructor Documentation

log4cpp::Layout::~Layout ( ) [inline, virtual]
 

Destructor for Layout.


Member Function Documentation

std::string log4cpp::Layout::format ( const LoggingEvent & event ) [pure virtual]
 

Formats the LoggingEvent data to a string that appenders can log.

Implement this method to create your own layout format.

Parameters:
event   The LoggingEvent.
Returns:
an appendable string.

Reimplemented in log4cpp::BasicLayout, and log4cpp::SimpleLayout.


The documentation for this class was generated from the following file:
Generated at Mon Jun 11 01:25:23 2001 for log4cpp by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001