提交 4bfa2dd4 编写于 作者: B Blankj

see 06/07 log

上级 96621bd5
......@@ -15,5 +15,5 @@
#org.gradle.jvmargs=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
org.gradle.jvmargs=-Xmx8192m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -XX:-UseGCOverheadLimit -Dfile.encoding=UTF-8
org.gradle.daemon=true
org.gradle.configureondemand=true
#org.gradle.configureondemand=true
#org.gradle.parallel=true
\ No newline at end of file
......@@ -8,8 +8,8 @@ gradle.ext {
compileSdkVersion = 27
minSdkVersion = 14
targetSdkVersion = 27
versionCode = 1_024_001
versionName = '1.24.1'// E.g. 1.9.72 => 1,009,072
versionCode = 1_024_002
versionName = '1.24.2'// E.g. 1.9.72 => 1,009,072
// lib version
kotlin_version = '1.3.10'
......
......@@ -480,7 +480,9 @@ public final class LogUtils {
String date = format.substring(0, 10);
String time = format.substring(11);
final String fullPath =
CONFIG.getDir() + CONFIG.getFilePrefix() + "_" + date + "_" + CONFIG.getProcessName() + ".txt";
CONFIG.getDir() + CONFIG.getFilePrefix() + "_"
+ date + "_" +
CONFIG.getProcessName() + ".txt";
if (!createOrExistsFile(fullPath, date)) {
Log.e("LogUtils", "create " + fullPath + " failed!");
return;
......@@ -757,7 +759,8 @@ public final class LogUtils {
}
public final String getProcessName() {
return mProcessName;
if (mProcessName == null) return "";
return mProcessName.replace(":", "_");
}
public final String getDefaultDir() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册