onLog property

void Function(String log, TRTCLogLevel level, String module) onLog
final

Printing of Local Log

If you want to capture the local log printing event, you can configure the log callback to have the SDK return to you via this callback all logs that are to be printed.

  • Parameters:
    • level(TRTCLogLevel):
      • Log level.
    • log(String):
      • Log content.
    • module(String):
      • Reserved field, which is not defined at the moment and has a fixed value of TXLiteAVSDK.

Implementation

final void Function(String log, TRTCLogLevel level, String module) onLog;