Azure Kinect Sensor SDK  refs/heads/master
Documentation for https://github.com/Microsoft/Azure-Kinect-Sensor-SDK
Error and event logging

The SDK can log data to the console, files, or to a custom handler. More...

The SDK can log data to the console, files, or to a custom handler.

Environment Variables:

K4A_ENABLE_LOG_TO_A_FILE / K4A_RECORD_ENABLE_LOG_TO_A_FILE Specifies the log file to save the log to. K4a.dll and k4arecord.dll can not log to the same file.

K4A_ENABLE_LOG_TO_A_FILE = K4A_RECORD_ENABLE_LOG_TO_A_FILE = 0 - completely disable logging to a file log\custom.log - log all messages to the path and file specified - must end in '.log' to be considered a valid entry NOTE 1: When enabled this takes precedence over the value of K4A_ENABLE_LOG_TO_STDOUT. NOTE 2: This can not be set to the same value as K4A_RECORD_ENABLE_LOG_TO_A_FILE as they represent separate logger instance that do not allowed shared access to the file being written to.

K4A_ENABLE_LOG_TO_STDOUT = 0 - disable logging to stdout all else - log all messages to stdout

K4A_LOG_LEVEL = 'c' - log all messages of level 'critical' criticality 'e' - log all messages of level 'error' or higher criticality 'w' - log all messages of level 'warning' or higher criticality 'i' - log all messages of level 'info' or higher criticality 't' - log all messages of level 'trace' or higher criticality DEFAULT - log all message of level 'error' or higher criticality

See remarks section of k4a_set_debug_message_handler