log_level.hpp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // (C) Copyright Gennadiy Rozental 2001.
  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
  8. //!@brief shared definition for unit test log levels
  9. // ***************************************************************************
  10. #ifndef BOOST_TEST_LOG_LEVEL_HPP_011605GER
  11. #define BOOST_TEST_LOG_LEVEL_HPP_011605GER
  12. namespace boost {
  13. namespace unit_test {
  14. // ************************************************************************** //
  15. // ************** log levels ************** //
  16. // ************************************************************************** //
  17. // each log level includes all subsequent higher loging levels
  18. enum log_level {
  19. invalid_log_level = -1,
  20. log_successful_tests = 0,
  21. log_test_units = 1,
  22. log_messages = 2,
  23. log_warnings = 3,
  24. log_all_errors = 4, // reported by unit test macros
  25. log_cpp_exception_errors = 5, // uncaught C++ exceptions
  26. log_system_errors = 6, // including timeouts, signals, traps
  27. log_fatal_errors = 7, // including unit test macros or
  28. // fatal system errors
  29. log_nothing = 8
  30. };
  31. } // namespace unit_test
  32. } // namespace boost
  33. #endif // BOOST_TEST_LOG_LEVEL_HPP_011605GER