Fixposition SDK 0.0.0-heads/main-0-g5c7edb5
Collection of c++ libraries and apps for use with Fixposition products on Linux
Loading...
Searching...
No Matches
Logging

API: fpsdk_common/logging.hpp and fpsdk::common::logging

Logging configuration

The defaults are:

The defaults can be changed by setting the FPSDK_LOGGING environment variable to a comma-separated list of words that correspond to the above parameters. The parameters are case-insensitive and they are applied in the order of appearance. Unknown words are silently ignored. Examples:

export FPSDK_LOGGING=DEBUG # Changes the level to DEBUG
export FPSDK_LOGGING=Warning,JOURNAL # Changes the level to WARNING and the "colour" to JOURNAL
export FPSDK_LOGGING=Warning,relative,debug # Changes the level to DEBUG and the timestamps to RELATIVE
export FPSDK_LOGGING=Warning,retalive,debgu # Changes the level to WARNING, and nothing else

Apps can configure the logging using the fpsdk::common::logging::LoggingSetParams(). See also the implementation of fpsdk::common::app::ProgramOptions().