TencentNavKit

TNKLogger.h
Go to the documentation of this file.
1//
2// TNKLogger.h
3// TencentNavKit
4//
5// Created by Tencent on 2018/3/5.
6// Copyright © 2018年 Tencent. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
12 typedef enum TNKLogLevel {
13 TNKLogLevelDEBUG = 0,
14 TNKLogLevelINFO = 1,
15 TNKLogLevelWARNING = 2,
16 TNKLogLevelERROR = 3,
17} _TNKLogLevel;
18
19
20@interface TNKLoggerRefluxOptions : NSObject
21
22// 开始时间戳.单位毫秒
23@property (nonatomic, assign) int64_t beginTime;
24// 结束时间戳.单位毫秒
25@property (nonatomic, assign) int64_t endTime;
26
27- (instancetype)initWithBeginTime:(int64_t)beginTime endTime:(int64_t)endTime;
28
29@end
30
34@interface TNKLogger : NSObject
35
39@property (nonatomic, readonly) NSString *fileDirPath;
40
44+ (instancetype)sharedInstance;
45
49- (void)setLogOn:(BOOL)logOn;
50
54- (void)writeLogText:(NSString *)text;
55
59- (void)reflux:(TNKLoggerRefluxOptions*)option;
60
61@end
TNKLogLevel
TNKLogLevel
日志等级
Definition: TNKLogger.h:12
TNKLogLevelINFO
@ TNKLogLevelINFO
Definition: TNKLogger.h:14
TNKLogLevelDEBUG
@ TNKLogLevelDEBUG
Definition: TNKLogger.h:13
TNKLogLevelWARNING
@ TNKLogLevelWARNING
Definition: TNKLogger.h:15
TNKLogLevelERROR
@ TNKLogLevelERROR
Definition: TNKLogger.h:16
_TNKLogLevel
enum TNKLogLevel _TNKLogLevel
日志等级
TNKLogger
日志管理类
Definition: TNKLogger.h:35
TNKLoggerRefluxOptions
Definition: TNKLogger.h:21
TNKLoggerRefluxOptions::beginTime
int64_t beginTime
Definition: TNKLogger.h:23
TNKLoggerRefluxOptions::endTime
int64_t endTime
Definition: TNKLogger.h:25