fix: ios添加日志参数配置,调整安卓日志等级的配置
parent
f4269be3c5
commit
67ccec51e4
|
@ -148,15 +148,15 @@ public class InitSDKModule extends BaseApi {
|
||||||
}
|
}
|
||||||
int logLevelIndex = (Integer) configMap.get("logLevel");
|
int logLevelIndex = (Integer) configMap.get("logLevel");
|
||||||
if (logLevelIndex == 0) {
|
if (logLevelIndex == 0) {
|
||||||
configBuilder.setLogLevel(XLogLevel.LEVEL_VERBOSE);
|
configBuilder.setLogLevel(XLogLevel.LEVEL_ERROR);
|
||||||
} else if (logLevelIndex == 1) {
|
} else if (logLevelIndex == 1) {
|
||||||
configBuilder.setLogLevel(XLogLevel.LEVEL_DEBUG);
|
configBuilder.setLogLevel(XLogLevel.LEVEL_WARNING);
|
||||||
} else if (logLevelIndex == 2) {
|
} else if (logLevelIndex == 2) {
|
||||||
configBuilder.setLogLevel(XLogLevel.LEVEL_INFO);
|
configBuilder.setLogLevel(XLogLevel.LEVEL_INFO);
|
||||||
} else if (logLevelIndex == 3) {
|
} else if (logLevelIndex == 3) {
|
||||||
configBuilder.setLogLevel(XLogLevel.LEVEL_WARNING);
|
configBuilder.setLogLevel(XLogLevel.LEVEL_DEBUG);
|
||||||
} else if (logLevelIndex == 4) {
|
} else if (logLevelIndex == 4) {
|
||||||
configBuilder.setLogLevel(XLogLevel.LEVEL_ERROR);
|
configBuilder.setLogLevel(XLogLevel.LEVEL_VERBOSE);
|
||||||
} else if (logLevelIndex == 5) {
|
} else if (logLevelIndex == 5) {
|
||||||
configBuilder.setLogLevel(XLogLevel.LEVEL_NONE);
|
configBuilder.setLogLevel(XLogLevel.LEVEL_NONE);
|
||||||
}
|
}
|
||||||
|
|
|
@ -250,8 +250,10 @@
|
||||||
failure(@"初始化失败");
|
failure(@"初始化失败");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
FATLogLevel logLevel = [self.config[@"logLevel"] integerValue];
|
||||||
|
NSString *logDir = self.config[@"logDir"];
|
||||||
// [[FATExtClient sharedClient] fat_prepareExtensionApis];
|
// [[FATExtClient sharedClient] fat_prepareExtensionApis];
|
||||||
[[FATClient sharedClient].logManager initLogWithLogDir:nil logLevel:FATLogLevelVerbose consoleLog:YES];
|
[[FATClient sharedClient].logManager initLogWithLogDir:logDir logLevel:logLevel consoleLog:YES];
|
||||||
|
|
||||||
|
|
||||||
[[FATClient sharedClient] setEnableLog:YES];
|
[[FATClient sharedClient] setEnableLog:YES];
|
||||||
|
|
Loading…
Reference in New Issue