Skip to main content

uploadLogs

Description

info

Upload SDK logs to the server for problem analysis and positioning. line is the number of lines to upload. When line is 0, all logs are uploaded.

Note

This interface is expected to be updated.

Function Prototype


- (void)uploadLogsWithProgress:(OIMUploadProgressCallback)onProgress
line:(NSInteger )line
ex:(NSString *)ex
onSuccess:(OIMSuccessCallback)onSuccess
onFailure:(OIMFailureCallback)onFailure;

Input Parameters

None

Return Result

Parameter NameParameter TypeDescription
onSuccessOIMSuccessCallbackSuccess return
onFailureOIMFailureCallbackFailure return

Code Example


[OIMManager.manager uploadLogsWithProgress:^(NSInteger saveBytes, NSInteger currentBytes, NSInteger totalBytes) {

} line:0 ex:nil onSuccess:^(NSString * _Nullable data) {

} onFailure:^(NSInteger code, NSString * _Nullable msg) {

}];