PassThroughLayout.hh 351 B

12345678910111213141516
  1. #if !defined(h_8e4861a3_f607_479c_ac2d_0b2d81b4c36c)
  2. #define h_8e4861a3_f607_479c_ac2d_0b2d81b4c36c
  3. #include <log4cpp/Layout.hh>
  4. LOG4CPP_NS_BEGIN
  5. class PassThroughLayout : public Layout
  6. {
  7. public:
  8. virtual std::string format(const LoggingEvent& event) { return event.message; }
  9. };
  10. LOG4CPP_NS_END
  11. #endif // h_8e4861a3_f607_479c_ac2d_0b2d81b4c36c