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
22@interface TNKLogger : NSObject
23
27@property (nonatomic, readonly) NSString *fileDirPath;
28
32+ (instancetype)sharedInstance;
33
37- (void)setLogOn:(BOOL)logOn;
38
42- (void)writeLogText:(NSString *)text;
43
44@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:23
TNKLogger::fileDirPath
NSString * fileDirPath
文件夹路径
Definition: TNKLogger.h:27
+[TNKLogger sharedInstance]
instancetype sharedInstance()
获取实例