Updated on 2023-12-25 GMT+08:00

Configuring SDK Logging

If you have any questions during the development, post them on the Issues page of GitHub. For details about parameters and usage of each API, see the API Reference.

OBS .NET SDK provides the logging function, based on the Apache Log4net open library. You can add log configuration files to enable the logging function. The procedure is as follows:

  1. Add a reference to log4net.dll in the project.
  2. Copy configuration file Log4Net.config to Debug or Release under directory bin of the project, to ensure that the configuration file and the project's executable files are in the same directory.
  3. Modify log levels in file Log4Net.config based on needs.
  • Without these operations, the logging function is in the disabled state and no logs will be generated.
  • For details about SDK logs, see Log Analysis.
  • The save path of log files defaults to be that of the project's executable files and can be changed in Log4Net.config.