cv::utils::logging::internal namespace#
Core functionality » Utility and system functions and macros » Logging facilities
Typedef Documentation#
WriteLogMessageExFuncType#
-
typedef void (*cv::utils::logging::internal::WriteLogMessageExFuncType)(LogLevel, const char*, const char*, int, const char*, const char*)#
Function pointer type for writeLogMessageEx. Used by replaceWriteLogMessageEx.
WriteLogMessageFuncType#
-
typedef void (*cv::utils::logging::internal::WriteLogMessageFuncType)(LogLevel, const char*)#
Function pointer type for writeLogMessage. Used by replaceWriteLogMessage.
Function Documentation#
getGlobalLogTag()#
-
cv::utils::logging::LogTag *cv::utils::logging::internal::getGlobalLogTag()#
Get global log tag
replaceWriteLogMessage()#
-
void cv::utils::logging::internal::replaceWriteLogMessage(WriteLogMessageFuncType f)#
Replaces the OpenCV writeLogMessage function with a user-defined function.
Note
The user-defined function must have the same signature as writeLogMessage.
Note
The user-defined function must accept arguments that can be potentially null.
Note
The user-defined function must be thread-safe, as OpenCV logging may be called from multiple threads.
Note
The user-defined function must not perform any action that can trigger deadlocks or infinite loop. Many OpenCV functions are not re-entrant.
Note
Once replaced, logs will not go through the OpenCV writeLogMessage function.
Note
To restore, call this function with a nullptr.
replaceWriteLogMessageEx()#
-
void cv::utils::logging::internal::replaceWriteLogMessageEx(WriteLogMessageExFuncType f)#
Replaces the OpenCV writeLogMessageEx function with a user-defined function.
Note
The user-defined function must have the same signature as writeLogMessageEx.
Note
The user-defined function must accept arguments that can be potentially null.
Note
The user-defined function must be thread-safe, as OpenCV logging may be called from multiple threads.
Note
The user-defined function must not perform any action that can trigger deadlocks or infinite loop. Many OpenCV functions are not re-entrant.
Note
Once replaced, logs will not go through any of the OpenCV logging functions such as writeLogMessage or writeLogMessageEx, until their respective restore methods are called.
Note
To restore, call this function with a nullptr.
writeLogMessage()#
-
void cv::utils::logging::internal::writeLogMessage(LogLevel logLevel, const char *message)#
Write log message
writeLogMessageEx()#
-
void cv::utils::logging::internal::writeLogMessageEx(LogLevel logLevel, const char *tag, const char *file, int line, const char *func, const char *message)#
Write log message