summaryrefslogtreecommitdiff
path: root/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDORecordDeviceLog.h
blob: d8467892a430d4453089eec824970d853cf68b34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
//  IDORecordDeviceLog.h
//  IDOBluetooth
//
//  Created by hedongyang on 2018/9/25.
//  Copyright © 2018年 apple. All rights reserved.
//

#import <Foundation/Foundation.h>

#if __has_include(<IDOBluetoothInternal/IDOBluetoothInternal.h>)
#elif __has_include(<IDOBlueProtocol/IDOBlueProtocol.h>)
#else
#import "IDOLogEnum.h"
#endif

@interface IDORecordDeviceLog : NSObject

/**
 * @brief 获取设备日志信息 (在设备连接ota模式下不能使用获取设备重启日志)
 * Obtain device log information (When the device is connected, it is not used in the ota mode to get the device restart log)
 * @param callback 日志信息获取完成回调 | Log information acquisition completion callback
 */
+ (void)getDeviceLogWithCallback:(void(^_Nullable)(BOOL isComplete))callback;

/**
 * @brief 记录协议库外的蓝牙日志
 * Record bluetooth logs outside the protocol library
 * @param type 日志类型 | Log type
 * @param logStr 日志记录 | Log str
 */
+ (void)recordBlueLogWithType:(IDO_RECORD_LOG_TYPE)type
                       logStr:(NSString *_Nullable)logStr;

/**
 * @brief 设备重启日志路径 | Device restart log path
 * @return 日志存储目录 目录下可能有多个日志文件 日志文件是按日期生成的
 * Log Storage Directory There may be multiple log files under the directory. The log files are generated by date.
 */
+ (NSString *_Nullable)rebootLogFloderPath;

/**
 * @brief 命令执行记录日志路径 | Command execution logging path
 * @return 日志存储目录 目录下可能有多个日志文件 日志文件是按日期生成的
 * log Storage Directory There may be multiple log files under the directory. The log files are generated by date.
 */
+ (NSString *_Nullable)recordLogFloaderPath;

/**
 * sdk 更新日志文件路径(html)
 * sdk update log file path(html)
 */
+ (NSString *_Nullable)updateLogFilePath DEPRECATED_MSG_ATTRIBUTE("method is deprecated");

@end