phizclip-uniapp-demo/finclip-uniapp-test/nativeplugins/MopSdk/ios/FinApplet.framework/Headers/FATLogManager.h

102 lines
2.7 KiB
C
Raw Normal View History

2022-06-08 11:57:35 +08:00
//
// FATLogManager.h
// FATLog
//
// Created by HJH on 2018/5/21.
//
#import "FATLogEngine.h"
#define FATLogWithType(type, atag, frmt, ...) \
do { \
[[FATLogManager sharedInstance] logWithType:type tag:atag message:[NSString stringWithFormat:(frmt), ##__VA_ARGS__]]; \
} while (0)
#define FATLogError(frmt, ...) \
FATLogWithType(FATLogTypeError, nil, frmt, ##__VA_ARGS__)
#define FATLogWarning(frmt, ...) \
FATLogWithType(FATLogTypeWarning, nil, frmt, ##__VA_ARGS__)
#define FATLogInfo(frmt, ...) \
FATLogWithType(FATLogTypeInfo, nil, frmt, ##__VA_ARGS__)
#define FATLogDebug(frmt, ...) \
FATLogWithType(FATLogTypeDebug, nil, frmt, ##__VA_ARGS__)
#define FATLogTagError(tag, frmt, ...) \
FATLogWithType(FATLogTypeError, tag, frmt, ##__VA_ARGS__)
#define FATLogTagWarning(tag, frmt, ...) \
FATLogWithType(FATLogTypeWarning, tag, frmt, ##__VA_ARGS__)
#define FATLogTagInfo(tag, frmt, ...) \
FATLogWithType(FATLogTypeInfo, tag, frmt, ##__VA_ARGS__)
#define FATLogTagDebug(tag, frmt, ...) \
FATLogWithType(FATLogTypeDebug, tag, frmt, ##__VA_ARGS__)
@class FATLoggerDriver;
@interface FATLogManager : NSObject
@property (strong, nonatomic, readonly) FATLogEngine *logEngine;
@property (assign, nonatomic) FATLogLevel level;
+ (instancetype)sharedInstance;
- (void)setup;
- (void)logWithType:(FATLogType)type tag:(NSString *)tag message:(NSString *)message;
/**
Enable SystemLog.
SystemLog
*/
- (void)enableSystemLog;
/**
Disable SystemLog.
SystemLog
*/
- (void)disableSystemLog;
/**
Enable file log. Logs will be written in files.
loglog
*/
- (void)enableFileLog;
/**
Disable file log.
log
*/
- (void)disableFileLog;
/**
Enable console log. We suggest don't Console Log when SystemLog is enabled.
logSystemLog
*/
//- (void)enableConsoleLog;
///**
// Disable console log.
// 关闭控制台log。
// */
//- (void)disableConsoleLog;
//
///**
// Enable the browser log tool. The function requires the authorization of networking.
// 打开浏览器log调试功能。该功能须要APP网络权限。
// */
//- (void)enableRemoteConsole;
///**
// Disable the browser log tool.
// 关闭浏览器log调试功能。
// */
//- (void)disableRemoteConsole;
/**
All the logs in memory will be written in files immediately.
log.
@return log files' path log
*/
- (NSArray<NSString *> *)exportLog;
@end