log4cpp 1.1

PassThroughLayout.hh

Go to the documentation of this file.
00001 /*
00002  * Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
00003  * Copyright 2002, Bastiaan Bakker. All rights reserved.
00004  *
00005  * See the COPYING file for the terms of usage and distribution.
00006  */
00007 
00008 #if !defined(h_8e4861a3_f607_479c_ac2d_0b2d81b4c36c)
00009 #define h_8e4861a3_f607_479c_ac2d_0b2d81b4c36c
00010 
00011 #include <log4cpp/Layout.hh>
00012 
00013 namespace log4cpp
00014 {
00015    class PassThroughLayout : public Layout
00016    {
00017       public:
00018          virtual std::string format(const LoggingEvent& event) { return event.message; }
00019    };
00020 }
00021 
00022 #endif // h_8e4861a3_f607_479c_ac2d_0b2d81b4c36c
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines