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 |




