log_level.hpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #include <boost/test/detail/config.hpp>
  13. namespace boost {
  14. namespace unit_test {
  15. // ************************************************************************** //
  16. // ************** log levels ************** //
  17. // ************************************************************************** //
  18. // each log level includes all subsequent higher loging levels
  19. enum BOOST_TEST_ENUM_SYMBOL_VISIBLE log_level {
  20. invalid_log_level = -1,
  21. log_successful_tests = 0,
  22. log_test_units = 1,
  23. log_messages = 2,
  24. log_warnings = 3,
  25. log_all_errors = 4, // reported by unit test macros
  26. log_cpp_exception_errors = 5, // uncaught C++ exceptions
  27. log_system_errors = 6, // including timeouts, signals, traps
  28. log_fatal_errors = 7, // including unit test macros or
  29. // fatal system errors
  30. log_nothing = 8
  31. };
  32. } // namespace unit_test
  33. } // namespace boost
  34. #endif // BOOST_TEST_LOG_LEVEL_HPP_011605GER