BasicConfigurator.hh 657 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * BasicConfigurator.hh
  3. *
  4. * Copyright 2002, Log4cpp Project. All rights reserved.
  5. *
  6. * See the COPYING file for the terms of usage and distribution.
  7. */
  8. #ifndef _LOG4CPP_BASICCONFIGURATOR_HH
  9. #define _LOG4CPP_BASICCONFIGURATOR_HH
  10. #include <log4cpp/Portability.hh>
  11. LOG4CPP_NS_BEGIN
  12. /**
  13. This class implements a trivial default configuration for log4cpp:
  14. it adds a FileAppender that logs to stdout and uses a BasicLayout to
  15. the root Category.
  16. @since 0.3.2
  17. **/
  18. class LOG4CPP_EXPORT BasicConfigurator {
  19. public:
  20. /**
  21. Performs a minimal configuration of log4cpp.
  22. **/
  23. static void configure();
  24. };
  25. LOG4CPP_NS_END
  26. #endif