If no callback functions of external logs are provided, RTS SDK uses the built-in log module. The following table describes the parameters of built-in logs.

Parameter Description
LogToConsole Specifies whether to push built-in logs to the ApsaraVideo Live console.
LogToFile Specifies whether to export built-in logs to a file.
LogToServer Specifies whether to push built-in logs to a server.
LogLevel The filtering condition of logs. Logs are pushed or exported only when the log level is high. Valid values:
  • 0: ERROR.
  • 1: WARN.
  • 2: INFO.
  • 3: DEBUG.

Example

__rts_funcs->preconfig("LogToConsole", "true"); //output to console
__rts_funcs->preconfig("LogToFile",    "true"); //output to file
__rts_funcs->preconfig("LogToServer",  "true"); //output to server
__rts_funcs->preconfig("LogLevel",     "2");    //LOG_INFO