Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
mmm-rain
AndroidUtilCode
提交
4bfa2dd4
A
AndroidUtilCode
项目概览
mmm-rain
/
AndroidUtilCode
与 Fork 源项目一致
从无法访问的项目Fork
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
AndroidUtilCode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4bfa2dd4
编写于
6月 06, 2019
作者:
B
Blankj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
see 06/07 log
上级
96621bd5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
5 deletion
+8
-5
gradle.properties
gradle.properties
+1
-1
gradle/config/config.gradle
gradle/config/config.gradle
+2
-2
utilcode/lib/src/main/java/com/blankj/utilcode/util/LogUtils.java
.../lib/src/main/java/com/blankj/utilcode/util/LogUtils.java
+5
-2
未找到文件。
gradle.properties
浏览文件 @
4bfa2dd4
...
@@ -15,5 +15,5 @@
...
@@ -15,5 +15,5 @@
#org.gradle.jvmargs=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
#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.jvmargs
=
-Xmx8192m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -XX:-UseGCOverheadLimit -Dfile.encoding=UTF-8
org.gradle.daemon
=
true
org.gradle.daemon
=
true
org.gradle.configureondemand
=
true
#
org.gradle.configureondemand=true
#
org.gradle.parallel
=
true
#
org.gradle.parallel
=
true
\ No newline at end of file
gradle/config/config.gradle
浏览文件 @
4bfa2dd4
...
@@ -8,8 +8,8 @@ gradle.ext {
...
@@ -8,8 +8,8 @@ gradle.ext {
compileSdkVersion
=
27
compileSdkVersion
=
27
minSdkVersion
=
14
minSdkVersion
=
14
targetSdkVersion
=
27
targetSdkVersion
=
27
versionCode
=
1
_024_00
1
versionCode
=
1
_024_00
2
versionName
=
'1.24.
1
'
// E.g. 1.9.72 => 1,009,072
versionName
=
'1.24.
2
'
// E.g. 1.9.72 => 1,009,072
// lib version
// lib version
kotlin_version
=
'1.3.10'
kotlin_version
=
'1.3.10'
...
...
utilcode/lib/src/main/java/com/blankj/utilcode/util/LogUtils.java
浏览文件 @
4bfa2dd4
...
@@ -480,7 +480,9 @@ public final class LogUtils {
...
@@ -480,7 +480,9 @@ public final class LogUtils {
String
date
=
format
.
substring
(
0
,
10
);
String
date
=
format
.
substring
(
0
,
10
);
String
time
=
format
.
substring
(
11
);
String
time
=
format
.
substring
(
11
);
final
String
fullPath
=
final
String
fullPath
=
CONFIG
.
getDir
()
+
CONFIG
.
getFilePrefix
()
+
"_"
+
date
+
"_"
+
CONFIG
.
getProcessName
()
+
".txt"
;
CONFIG
.
getDir
()
+
CONFIG
.
getFilePrefix
()
+
"_"
+
date
+
"_"
+
CONFIG
.
getProcessName
()
+
".txt"
;
if
(!
createOrExistsFile
(
fullPath
,
date
))
{
if
(!
createOrExistsFile
(
fullPath
,
date
))
{
Log
.
e
(
"LogUtils"
,
"create "
+
fullPath
+
" failed!"
);
Log
.
e
(
"LogUtils"
,
"create "
+
fullPath
+
" failed!"
);
return
;
return
;
...
@@ -757,7 +759,8 @@ public final class LogUtils {
...
@@ -757,7 +759,8 @@ public final class LogUtils {
}
}
public
final
String
getProcessName
()
{
public
final
String
getProcessName
()
{
return
mProcessName
;
if
(
mProcessName
==
null
)
return
""
;
return
mProcessName
.
replace
(
":"
,
"_"
);
}
}
public
final
String
getDefaultDir
()
{
public
final
String
getDefaultDir
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录