log4cpp:PatternLayout (3)





NAME

       log4cpp::PatternLayout - BasicLayout is a simple fixed format Layout
       implementation.


SYNOPSIS

       #include <PatternLayout.hh>

       Inherits log4cpp::Layout.

   Public Methods
       PatternLayout ()
       virtual ~PatternLayout ()
       virtual std::string format (const LoggingEvent &event)
           Formats the LoggingEvent in the style set by the
           setConversionPattern call.
       bool setConversionPattern (std::string conversionPattern)
           Sets the format of log lines handled by this PatternLayout.


DETAILED DESCRIPTION

       BasicLayout is a simple fixed format Layout implementation.


CONSTRUCTOR & DESTRUCTOR DOCUMENTATION

   log4cpp::PatternLayout::PatternLayout ()
   log4cpp::PatternLayout::~PatternLayout () [virtual]

MEMBER FUNCTION DOCUMENTATION

   std::string log4cpp::PatternLayout::format (const LoggingEvent & event)
       [virtual]
       Formats the LoggingEvent in the style set by the setConversionPattern
       call.

       By default, set to 'mn'

       Implements log4cpp::Layout.

   bool log4cpp::PatternLayout::setConversionPattern (std::string
       conversionPattern)
       Sets the format of log lines handled by this PatternLayout.

       By default, set to 'mn'.
        Format characters are as follows:

       %% - a single percent sign

       c - the category

       d - the date

       D - seconds since 1970

       m - the message

       n - the platform specific line separator
       x - the NDC

       Parameters:

       conversionPattern
              the conversion pattern

       Returns:
           true if conversionPattern is a valid conversion pattern, false if
           it's invalid


AUTHOR

       Generated automatically by Doxygen for log4cpp from the source code.

log4cpp                           19 Aug 2003        log4cpp::PatternLayout(3)