Download include/opencv2/core/utils/logger.hpp from dlxjj/opencv: direct link, hf CLI and curl.
- Browser
- Download file 8.64 kB
-
https://huggingface.co/datasets/dlxjj/opencv/resolve/main/include/opencv2/core/utils/logger.hpp
- Command line
-
hf download hf://datasets/dlxjj/opencv/include/opencv2/core/utils/logger.hpp
-
curl -L -o logger.hpp https://huggingface.co/datasets/dlxjj/opencv/resolve/main/include/opencv2/core/utils/logger.hpp
8.64 kB
| // This file is part of OpenCV project. | |
| // It is subject to the license terms in the LICENSE file found in the top-level directory | |
| // of this distribution and at http://opencv.org/license.html. | |
| namespace cv { | |
| namespace utils { | |
| namespace logging { | |
| //! @addtogroup core_logging | |
| //! @{ | |
| /** Set global logging level | |
| @return previous logging level | |
| */ | |
| CV_EXPORTS LogLevel setLogLevel(LogLevel logLevel); | |
| /** Get global logging level */ | |
| CV_EXPORTS LogLevel getLogLevel(); | |
| CV_EXPORTS void registerLogTag(cv::utils::logging::LogTag* plogtag); | |
| CV_EXPORTS void setLogTagLevel(const char* tag, cv::utils::logging::LogLevel level); | |
| CV_EXPORTS cv::utils::logging::LogLevel getLogTagLevel(const char* tag); | |
| namespace internal { | |
| /** Get global log tag */ | |
| CV_EXPORTS cv::utils::logging::LogTag* getGlobalLogTag(); | |
| /** Write log message */ | |
| CV_EXPORTS void writeLogMessage(LogLevel logLevel, const char* message); | |
| /** Write log message */ | |
| CV_EXPORTS void writeLogMessageEx(LogLevel logLevel, const char* tag, const char* file, int line, const char* func, const char* message); | |
| } // namespace | |
| struct LogTagAuto | |
| : public LogTag | |
| { | |
| inline LogTagAuto(const char* _name, LogLevel _level) | |
| : LogTag(_name, _level) | |
| { | |
| registerLogTag(this); | |
| } | |
| }; | |
| /** | |
| * \def CV_LOG_STRIP_LEVEL | |
| * | |
| * Define CV_LOG_STRIP_LEVEL=CV_LOG_LEVEL_[DEBUG|INFO|WARN|ERROR|FATAL|SILENT] to compile out anything at that and before that logging level | |
| */ | |
| // CV_LOGTAG_EXPAND_NAME is intended to be re-defined (undef and then define again) | |
| // to allows logging users to use a shorter name argument when calling | |
| // CV_LOG_WITH_TAG or its related macros such as CV_LOG_INFO. | |
| // | |
| // This macro is intended to modify the tag argument as a string (token), via | |
| // preprocessor token pasting or metaprogramming techniques. A typical usage | |
| // is to apply a prefix, such as | |
| // ...... #define CV_LOGTAG_EXPAND_NAME(tag) cv_logtag_##tag | |
| // | |
| // It is permitted to re-define to a hard-coded expression, ignoring the tag. | |
| // This would work identically like the CV_LOGTAG_FALLBACK macro. | |
| // | |
| // Important: When the logging macro is called with tag being NULL, a user-defined | |
| // CV_LOGTAG_EXPAND_NAME may expand it into cv_logtag_0, cv_logtag_NULL, or | |
| // cv_logtag_nullptr. Use with care. Also be mindful of C++ symbol redefinitions. | |
| // | |
| // If there is significant amount of logging code with tag being NULL, it is | |
| // recommended to use (re-define) CV_LOGTAG_FALLBACK to inject locally a default | |
| // tag at the beginning of a compilation unit, to minimize lines of code changes. | |
| // | |
| // CV_LOGTAG_FALLBACK is intended to be re-defined (undef and then define again) | |
| // by any other compilation units to provide a log tag when the logging statement | |
| // does not specify one. The macro needs to expand into a C++ expression that can | |
| // be static_cast into (cv::utils::logging::LogTag*). Null (nullptr) is permitted. | |
| // CV_LOGTAG_GLOBAL is the tag used when a log tag is not specified in the logging | |
| // statement nor the compilation unit. The macro needs to expand into a C++ | |
| // expression that can be static_cast into (cv::utils::logging::LogTag*). Must be | |
| // non-null. Do not re-define. | |
| //! @cond IGNORED | |
| //! @endcond | |
| // CV_LOG_ONCE_XXX macros | |
| // CV_LOG_IF_XXX macros | |
| //! @} | |
| }}} // namespace | |