SimpleLayout.hh 784 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * SimpleLayout.hh
  3. *
  4. * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
  5. * Copyright 2000, Bastiaan Bakker. All rights reserved.
  6. *
  7. * See the COPYING file for the terms of usage and distribution.
  8. */
  9. #ifndef _LOG4CPP_SIMPLELAYOUT_HH
  10. #define _LOG4CPP_SIMPLELAYOUT_HH
  11. #include <log4cpp/Portability.hh>
  12. #include <log4cpp/Layout.hh>
  13. LOG4CPP_NS_BEGIN
  14. /**
  15. * BasicLayout is a simple fixed format Layout implementation.
  16. **/
  17. class LOG4CPP_EXPORT SimpleLayout : public Layout {
  18. public:
  19. SimpleLayout();
  20. virtual ~SimpleLayout();
  21. /**
  22. * Formats the LoggingEvent in SimpleLayout style:<br>
  23. * "priority - message"
  24. **/
  25. virtual std::string format(const LoggingEvent& event);
  26. };
  27. LOG4CPP_NS_END
  28. #endif // _LOG4CPP_SIMPLELAYOUT_HH