高德地图SDK(导航) V11.2.0501

Loading...
Searching...
No Matches
AMapNaviLogger.h
Go to the documentation of this file.
1//
2// AMapNaviLogger.h
3// AMapNaviKit
4//
5// Created by lihui.qlh on 2025/8/19.
6//
7
8#import <Foundation/Foundation.h>
9
10NS_ASSUME_NONNULL_BEGIN
11
15 typedef NS_ENUM(NSInteger, AMapNaviLogLevel) {
16 AMapNaviLogLevelDebug = 0,
17 AMapNaviLogLevelInfo = 1,
18 AMapNaviLogLevelWarning = 2,
19 AMapNaviLogLevelError = 3,
20 AMapNaviLogLevelFatal = 4,
21 AMapNaviLogLevelTrack = 5 // 用于排查性能问题
22};
23
24@protocol AMapNaviLoggerProtocol <NSObject>
25
26- (void)onNaviLog:(AMapNaviLogLevel)logLevel logContent:(nonnull NSString *)logContent;
27
28@end
29
30@interface AMapNaviLogger : NSObject
31
32+ (instancetype)shareInstance;
33
37- (void)setLogDelegate:(id<AMapNaviLoggerProtocol>)delegate;
38
39- (void)onNaviLog:(AMapNaviLogLevel)logLevel logContent:(NSString *)logContent, ... NS_FORMAT_FUNCTION(2,3);
40
41#pragma mark - FullLinkLog
42
45+ (void)setFullLinkLogBlock:(AMapNaviFullLinkLogBlock _Nonnull)block;
46
48+ (void)clearFullLinkLogBlock;
49
50@end
51
52NS_ASSUME_NONNULL_END
AMapNaviFullLinkLogBlock
void(^ AMapNaviFullLinkLogBlock)(NSString *_Nullable info)
全链路日志 Full link log
Definition AMapNaviCommonObj.h:548
AMapNaviLogLevel
AMapNaviLogLevel
Definition AMapNaviLogger.h:15
AMapNaviLogLevelWarning
@ AMapNaviLogLevelWarning
Definition AMapNaviLogger.h:18
AMapNaviLogLevelInfo
@ AMapNaviLogLevelInfo
Definition AMapNaviLogger.h:17
AMapNaviLogLevelFatal
@ AMapNaviLogLevelFatal
Definition AMapNaviLogger.h:20
AMapNaviLogLevelDebug
@ AMapNaviLogLevelDebug
Definition AMapNaviLogger.h:16
AMapNaviLogLevelError
@ AMapNaviLogLevelError
Definition AMapNaviLogger.h:19
AMapNaviLogLevelTrack
@ AMapNaviLogLevelTrack
Definition AMapNaviLogger.h:21
AMapNaviLogger
Definition AMapNaviLogger.h:31
+[AMapNaviLogger clearFullLinkLogBlock]
void clearFullLinkLogBlock()
清除全链路日志回调（全局单例，若不用需调用此方法) Clear the full-link log callback. (global singleton, call this method if no...
+[AMapNaviLogger shareInstance]
instancetype shareInstance()
© 2017 高德信息技术有限公司 版权所有，保留所有权利。