log4cpp  1.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PassThroughLayout.hh
Go to the documentation of this file.
1 #if !defined(h_8e4861a3_f607_479c_ac2d_0b2d81b4c36c)
2 #define h_8e4861a3_f607_479c_ac2d_0b2d81b4c36c
3 
4 #include <log4cpp/Layout.hh>
5 
6 namespace log4cpp
7 {
8  class PassThroughLayout : public Layout
9  {
10  public:
11  virtual std::string format(const LoggingEvent& event) { return event.message; }
12  };
13 }
14 
15 #endif // h_8e4861a3_f607_479c_ac2d_0b2d81b4c36c
Definition: PassThroughLayout.hh:8
Extend this abstract class to create your own log layout format.
Definition: Layout.hh:22
virtual std::string format(const LoggingEvent &event)
Formats the LoggingEvent data to a string that appenders can log.
Definition: PassThroughLayout.hh:11
The top level namespace for all 'Log for C++' types and classes.
Definition: AbortAppender.hh:16
The internal representation of logging events.
Definition: LoggingEvent.hh:32