PassThroughLayout.hh 573 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
  3. * Copyright 2002, Bastiaan Bakker. All rights reserved.
  4. *
  5. * See the COPYING file for the terms of usage and distribution.
  6. */
  7. #if !defined(h_8e4861a3_f607_479c_ac2d_0b2d81b4c36c)
  8. #define h_8e4861a3_f607_479c_ac2d_0b2d81b4c36c
  9. #include <log4cpp/Layout.hh>
  10. namespace log4cpp
  11. {
  12. class PassThroughLayout : public Layout
  13. {
  14. public:
  15. virtual std::string format(const LoggingEvent& event) { return event.message; }
  16. };
  17. }
  18. #endif // h_8e4861a3_f607_479c_ac2d_0b2d81b4c36c