log_level.hpp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // (C) Copyright Gennadiy Rozental 2005-2008.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/test for the library home page.
  6. //
  7. // File : $RCSfile$
  8. //
  9. // Version : $Revision: 49312 $
  10. //
  11. // Description : shared definition for unit test log levels
  12. // ***************************************************************************
  13. #ifndef BOOST_TEST_LOG_LEVEL_HPP_011605GER
  14. #define BOOST_TEST_LOG_LEVEL_HPP_011605GER
  15. namespace boost {
  16. namespace unit_test {
  17. // ************************************************************************** //
  18. // ************** log levels ************** //
  19. // ************************************************************************** //
  20. // each log level includes all subsequent higher loging levels
  21. enum log_level {
  22. invalid_log_level = -1,
  23. log_successful_tests = 0,
  24. log_test_units = 1,
  25. log_messages = 2,
  26. log_warnings = 3,
  27. log_all_errors = 4, // reported by unit test macros
  28. log_cpp_exception_errors = 5, // uncaught C++ exceptions
  29. log_system_errors = 6, // including timeouts, signals, traps
  30. log_fatal_errors = 7, // including unit test macros or
  31. // fatal system errors
  32. log_nothing = 8
  33. };
  34. } // namespace unit_test
  35. } // namespace boost
  36. #endif // BOOST_TEST_LOG_LEVEL_HPP_011605GER