00001 /* 00002 * Layout.hh 00003 * 00004 * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. 00005 * Copyright 2000, Bastiaan Bakker. All rights reserved. 00006 * 00007 * See the COPYING file for the terms of usage and distribution. 00008 */ 00009 00010 #ifndef _LOG4CPP_LAYOUT_HH 00011 #define _LOG4CPP_LAYOUT_HH 00012 00013 #include <log4cpp/Portability.hh> 00014 #include <log4cpp/LoggingEvent.hh> 00015 #include <string> 00016 00017 LOG4CPP_NS_BEGIN 00018 00022 class LOG4CPP_EXPORT Layout { 00023 public: 00027 virtual ~Layout() { }; 00028 00035 virtual std::string format(const LoggingEvent& event) = 0; 00036 }; 00037 LOG4CPP_NS_END 00038 00039 00040 #endif // _LOG4CPP_LAYOUT_HH