| 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 | |
| 6 | // See http://www.boost.org/libs/test for the library home page. |
| 7 | // |
| 8 | //!@file |
| 9 | //!@brief shared definition for unit test log levels |
| 10 | // *************************************************************************** |
| 11 | |
| 12 | #ifndef BOOST_TEST_LOG_LEVEL_HPP_011605GER |
| 13 | #define BOOST_TEST_LOG_LEVEL_HPP_011605GER |
| 14 | |
| 15 | #include <boost/test/detail/config.hpp> |
| 16 | |
| 17 | namespace boost { |
| 18 | namespace unit_test { |
| 19 | |
| 20 | // ************************************************************************** // |
| 21 | // ************** log levels ************** // |
| 22 | // ************************************************************************** // |
| 23 | |
| 24 | // each log level includes all subsequent higher loging levels |
| 25 | enum BOOST_TEST_ENUM_SYMBOL_VISIBLE log_level { |
| 26 | invalid_log_level = -1, |
| 27 | log_successful_tests = 0, |
| 28 | log_test_units = 1, |
| 29 | log_messages = 2, |
| 30 | log_warnings = 3, |
| 31 | log_all_errors = 4, // reported by unit test macros |
| 32 | log_cpp_exception_errors = 5, // uncaught C++ exceptions |
| 33 | log_system_errors = 6, // including timeouts, signals, traps |
| 34 | log_fatal_errors = 7, // including unit test macros or |
| 35 | // fatal system errors |
| 36 | log_nothing = 8 |
| 37 | }; |
| 38 | |
| 39 | } // namespace unit_test |
| 40 | } // namespace boost |
| 41 | |
| 42 | #endif // BOOST_TEST_LOG_LEVEL_HPP_011605GER |
| 43 | |