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

#include <Layout.hh>

Inheritance diagram for log4cpp::Layout:
Inheritance graph

Public Member Functions

virtual std::string format (const LoggingEvent &event)=0
virtual ~Layout ()

Detailed Description

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

Definition at line 22 of file Layout.hh.

Constructor & Destructor Documentation

virtual log4cpp::Layout::~Layout ( )

Destructor for Layout.

Definition at line 27 of file Layout.hh.

Member Function Documentation

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.

eventThe LoggingEvent.
an appendable string.

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

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

Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Jun 23 2019 19:10:00