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/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;
00067 std::string doFormat(const LoggingEvent& event,
00068 std::string conversionPattern,
00069 bool *success);
00070 };
00071 }
00072
00073 #endif // _LOG4CPP_PATTERNLAYOUT_HH