log4cpp:Layout (3)





NAME

       log4cpp::Layout - Extend this abstract class to create your own log
       layout format.


SYNOPSIS

       #include <Layout.hh>

       Inherited by log4cpp::BasicLayout, log4cpp::PatternLayout, and
       log4cpp::SimpleLayout.

   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.


DETAILED DESCRIPTION

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


CONSTRUCTOR & DESTRUCTOR DOCUMENTATION

   virtual log4cpp::Layout::~Layout () [inline, virtual]
       Destructor for Layout.


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.

       Parameters:

       event  The LoggingEvent.

       Returns:
           an appendable string.

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


AUTHOR

       Generated automatically by Doxygen for log4cpp from the source code.

log4cpp                           19 Aug 2003               log4cpp::Layout(3)