logger.defines.hpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #ifndef OPENCV_LOGGER_DEFINES_HPP
  5. #define OPENCV_LOGGER_DEFINES_HPP
  6. //! @addtogroup core_logging
  7. //! @{
  8. // Supported logging levels and their semantic
  9. #define CV_LOG_LEVEL_SILENT 0 //!< for using in setLogLevel() call
  10. #define CV_LOG_LEVEL_FATAL 1 //!< Fatal (critical) error (unrecoverable internal error)
  11. #define CV_LOG_LEVEL_ERROR 2 //!< Error message
  12. #define CV_LOG_LEVEL_WARN 3 //!< Warning message
  13. #define CV_LOG_LEVEL_INFO 4 //!< Info message
  14. #define CV_LOG_LEVEL_DEBUG 5 //!< Debug message. Disabled in the "Release" build.
  15. #define CV_LOG_LEVEL_VERBOSE 6 //!< Verbose (trace) messages. Requires verbosity level. Disabled in the "Release" build.
  16. namespace cv {
  17. namespace utils {
  18. namespace logging {
  19. //! Supported logging levels and their semantic
  20. enum LogLevel {
  21. LOG_LEVEL_SILENT = 0, //!< for using in setLogVevel() call
  22. LOG_LEVEL_FATAL = 1, //!< Fatal (critical) error (unrecoverable internal error)
  23. LOG_LEVEL_ERROR = 2, //!< Error message
  24. LOG_LEVEL_WARNING = 3, //!< Warning message
  25. LOG_LEVEL_INFO = 4, //!< Info message
  26. LOG_LEVEL_DEBUG = 5, //!< Debug message. Disabled in the "Release" build.
  27. LOG_LEVEL_VERBOSE = 6, //!< Verbose (trace) messages. Requires verbosity level. Disabled in the "Release" build.
  28. #ifndef CV_DOXYGEN
  29. ENUM_LOG_LEVEL_FORCE_INT = INT_MAX
  30. #endif
  31. };
  32. }}} // namespace
  33. //! @}
  34. #endif // OPENCV_LOGGER_DEFINES_HPP