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

PatternLayout.hh

Go to the documentation of this file.
00001 /*
00002  * PatternLayout.hh
00003  *
00004  * Copyright 2001, Glen Scott. All rights reserved.
00005  *
00006  * See the COPYING file for the terms of usage and distribution.
00007  */
00008 
00009 #ifndef _LOG4CPP_PATTERNLAYOUT_HH
00010 #define _LOG4CPP_PATTERNLAYOUT_HH
00011 
00012 #include "log4cpp/Portability.hh"
00013 #include "log4cpp/Export.hh"
00014 #include "log4cpp/Layout.hh"
00015 
00016 namespace log4cpp {
00017 
00021     class LOG4CPP_EXPORT PatternLayout : public Layout {
00022         public:
00023         PatternLayout();
00024         virtual ~PatternLayout();
00025         
00031         virtual std::string format(const LoggingEvent& event);
00032 
00052         bool setConversionPattern(std::string conversionPattern);
00053 
00054         private:
00055         std::string convPatn;   // The conversion pattern set for this layout
00067         std::string doFormat(const LoggingEvent& event, 
00068                              std::string conversionPattern,
00069                              bool *success);        
00070     };        
00071 }
00072 
00073 #endif // _LOG4CPP_PATTERNLAYOUT_HH

Generated on Fri May 9 10:39:36 2003 for log4cpp by doxygen1.2.18