Updated on 2026-08-03 GMT+08:00

Configuring SDK Logging (SDK for C)

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 generated in the logs directory at the same level as the lib directory of the C SDK dynamic library. The OBS.ini file must be in the same directory as the dynamic library (libeSDKLogAPI.so for Linux and eSDKLogAPI.dll for Windows).

The OBS SDK for C allows you to use set_obs_log_path to specify a log path. This function contains two parameters. The log_path parameter specifies the log path and the only_set_log_conf parameter determines what to do under the path. The value of only_set_log_conf is a Boolean value. If only_set_log_conf is set to true, the SDK searches for OBS.ini in the path specified by log_path for log configuration. If only_set_log_conf is set to false, the SDK generates OBS.ini and log files in the path specified by log_path.

For details about SDK logging, see Log Analysis (SDK for C).