Updated on 2024-12-03 GMT+08:00

Configuring SDK Logging

If you have any questions during development, post them on the Issues page of GitHub.

The OBS C SDK log path is specified by the LogPath field in OBS.ini. By default, logs are stored in the logs directory at the same level as the lib directory of the C SDK dynamic library. OBS.ini must be in the same directory as libeSDKLogAPI.so.

The OBS C SDK allows you to use set_obs_log_path to specify a log path. This method has two parameters. The first parameter specifies a path and the second one determines how to set the path. If the second parameter is set to True, the SDK searches for OBS.ini in the path specified by the first parameter for log configuration. If the second parameter is set to False, the SDK generates OBS.ini and log files in the path specified by the first parameter.