1 // This file is part of OpenCV project. 2 // It is subject to the license terms in the LICENSE file found in the top-level directory 3 // of this distribution and at http://opencv.org/license.html. 4 5 #ifndef OPENCV_LOGGER_DEFINES_HPP 6 #define OPENCV_LOGGER_DEFINES_HPP 7 8 //! @addtogroup core_logging 9 //! @{ 10 11 // Supported logging levels and their semantic 12 #define CV_LOG_LEVEL_SILENT 0 //!< for using in setLogLevel() call 13 #define CV_LOG_LEVEL_FATAL 1 //!< Fatal (critical) error (unrecoverable internal error) 14 #define CV_LOG_LEVEL_ERROR 2 //!< Error message 15 #define CV_LOG_LEVEL_WARN 3 //!< Warning message 16 #define CV_LOG_LEVEL_INFO 4 //!< Info message 17 #define CV_LOG_LEVEL_DEBUG 5 //!< Debug message. Disabled in the "Release" build. 18 #define CV_LOG_LEVEL_VERBOSE 6 //!< Verbose (trace) messages. Requires verbosity level. Disabled in the "Release" build. 19 20 namespace cv { 21 namespace utils { 22 namespace logging { 23 24 //! Supported logging levels and their semantic 25 enum LogLevel { 26 LOG_LEVEL_SILENT = 0, //!< for using in setLogVevel() call 27 LOG_LEVEL_FATAL = 1, //!< Fatal (critical) error (unrecoverable internal error) 28 LOG_LEVEL_ERROR = 2, //!< Error message 29 LOG_LEVEL_WARNING = 3, //!< Warning message 30 LOG_LEVEL_INFO = 4, //!< Info message 31 LOG_LEVEL_DEBUG = 5, //!< Debug message. Disabled in the "Release" build. 32 LOG_LEVEL_VERBOSE = 6, //!< Verbose (trace) messages. Requires verbosity level. Disabled in the "Release" build. 33 #ifndef CV_DOXYGEN 34 ENUM_LOG_LEVEL_FORCE_INT = INT_MAX 35 #endif 36 }; 37 38 }}} // namespace 39 40 //! @} 41 42 #endif // OPENCV_LOGGER_DEFINES_HPP 43