00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef _LOG4CPP_PATTERNLAYOUT_HH
00010 #define _LOG4CPP_PATTERNLAYOUT_HH
00011
00012 #include <log4cpp/Portability.hh>
00013 #include <log4cpp/Layout.hh>
00014
00015 namespace log4cpp {
00016
00020 class LOG4CPP_EXPORT PatternLayout : public Layout {
00021 public:
00022 PatternLayout();
00023 virtual ~PatternLayout();
00024
00025
00026
00027
00033 virtual std::string format(const LoggingEvent& event);
00034
00060 bool setConversionPattern(std::string conversionPattern);
00061
00062 private:
00063 std::string convPatn;
00075 std::string doFormat(const LoggingEvent& event,
00076 std::string conversionPattern,
00077 bool *success);
00078 };
00079 }
00080
00081 #endif // _LOG4CPP_PATTERNLAYOUT_HH