The UHD logging facility
Application Note Information
AN-001 by Michael Dickens
This application note describes the UHD logging facility: compile-time options, runtime options, application usage, default values and how all of these interact.
There are 7 logging levels; the name and number can be used interchangeably for any logging variable.
There are 2 distinct times where logging can be controlled: during compilation per CMake settings, and during runtime via shell environment variables.
CMake Logging Settings
There are 4 CMake variables that control logging:
UHD_LOG_CONSOLE_LEVEL. Each of these variables can be set independently via the CMake commandline or other methods, and override each's default value. The default values for these variables depend on whether the
CMAKE_BUILD_TYPE is debug or not, as follows:
||info (2)||trace (0)|
||info (2)||debug (0)|