跳转至
400-881-9892

文档中心

官方文档,可查阅产品介绍、快速入门、用户指南、开发指南、API参考、SDK参考、帮助等信息。

文档中心 互动课堂

TKServersLog

TKServersLog class

Description Type
Inherits from NSObject
Declared in TKServersLog.h
Overview

The TKRoomSDK provides log printing and log uploading features.

setLogInfo
  • Brief Description

Set Log Printing Information

  • Interface Name

+ (int)setLogInfo:(TKLogInfo *)logInfo;

  • Parameters
Parameter Name Required Type Description
logInfo Yes TKLogInfo The log information to be set, detailed in TKLogInfo
  • Return Value Description
Type Description
int 0: Indicates that the call is successful. Non-zero: Indicates that the call has failed
uploadLogWithLevel
  • Brief Description

Upload a Log

  • Interface Name

+ (void)uploadLogWithLevel:(TKLogLevel)level Text:(NSString *)text;

  • Parameters
Parameter Name Required Type Description
level Yes TKLogLevel Log type (TKLoggerLevelError, TKLoggerLevelDebug, TKLoggerLevelInfo, TKLoggerLevelWarning) - Other types are not supported for now
text Yes NSString Log content
  • Return Value Description
Type Description
int 0: Indicates that the call is successful. Non-zero: Indicates that the call has failed