log4cpp  1.1.3
Public Member Functions | List of all members
log4cpp::Layout Class Referenceabstract

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

#include <Layout.hh>

Inheritance diagram for log4cpp::Layout:
Inheritance graph
[legend]

Public Member Functions

virtual ~Layout ()
 Destructor for Layout. More...
 
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

◆ ~Layout()

virtual log4cpp::Layout::~Layout ( )
inlinevirtual

Destructor for Layout.

Member Function Documentation

◆ format()

virtual 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
eventThe LoggingEvent.
Returns
an appendable string.

Implemented in log4cpp::SimpleLayout, log4cpp::PatternLayout, log4cpp::PassThroughLayout, and log4cpp::BasicLayout.


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