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