Help Center> Object Storage Service> C> Initialization> Configuring SDK Logging
Updated on 2022-09-07 GMT+08:00

Configuring SDK Logging

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

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

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.