-
-
Notifications
You must be signed in to change notification settings - Fork 55.8k
OE 11. Logging
- Author: Alexander Alekhin, Vadim Pisarevsky
- Link: The feature request
- Status: Draft
- Platforms: All
- Complexity: a few man-weeks to do the basic stuff, some more time to convert existing logging code to the new API
OpenCV is already quite complex and in places a multi-layered library (e.g. the DNN module or video capturing API), so it could be useful to have logging capabilities. For example, logging may help to investigate and debug problems on inaccessible/remote platforms/hardware/cameras/etc. And it would be nice to use some convenient API across the whole library instead of chunks of conditionally-compiled code and ad-hoc printf's.
The solution may be based on or resemble Google's glog library. Whatever framework is used as a base (or written from scratch), it should have the following properties at least:
- Practically zero overhead when the logging is turned off
- Logging calls should have "component" and "verbosity" parameters, so that logging could be enabled just for the certain component and just at the certain level of verbosity (or less).
- The control over logging should be done globally, but on per-thread basis.
Because it's new API and the internal changes in the library, it should not affect the existing user code.
Leave it as-is.
© Copyright 2024, OpenCV team
- Home
- Deep Learning in OpenCV
- Running OpenCV on Various Platforms
- OpenCV 5
- OpenCV 4
- OpenCV 3
- Development process
- OpenCV GSoC
- Archive