Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xiaoxuan_i809
AndroidUtilCode
提交
be520ffe
A
AndroidUtilCode
项目概览
xiaoxuan_i809
/
AndroidUtilCode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
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,体验更适合开发者的 AI 搜索 >>
提交
be520ffe
编写于
12月 04, 2017
作者:
B
Blankj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
see 12/04 log
上级
28def9b7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
13 deletion
+19
-13
LICENSE
LICENSE
+1
-1
update_log.md
update_log.md
+1
-0
utilcode/src/main/java/com/blankj/utilcode/util/LogUtils.java
...code/src/main/java/com/blankj/utilcode/util/LogUtils.java
+17
-12
未找到文件。
LICENSE
浏览文件 @
be520ffe
...
...
@@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright
{yyyy} {name of copyright owner}
Copyright
2017 Blankj
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
...
...
update_log.md
浏览文件 @
be520ffe
*
17/12/04 LogUtils 边框改为单线清爽型
*
17/11/30 修复 ToastUtils 背景问题,发布 1.9.10
*
17/11/30 修复 ToastUtils 获取背景为空,发布 1.9.9
*
17/11/28 修复 EmptyUtils 对 CharSequence 的判断,感谢 jiezigg
...
...
utilcode/src/main/java/com/blankj/utilcode/util/LogUtils.java
浏览文件 @
be520ffe
...
...
@@ -81,17 +81,22 @@ public final class LogUtils {
private
static
int
sFileFilter
=
V
;
// log 文件过滤器
private
static
int
sStackDeep
=
1
;
// log 栈深度
private
static
final
String
FILE_SEP
=
System
.
getProperty
(
"file.separator"
);
private
static
final
String
LINE_SEP
=
System
.
getProperty
(
"line.separator"
);
private
static
final
String
TOP_BORDER
=
"╔═══════════════════════════════════════════════════════════════════════════════════════════════════"
;
private
static
final
String
SPLIT_BORDER
=
"╟───────────────────────────────────────────────────────────────────────────────────────────────────"
;
private
static
final
String
LEFT_BORDER
=
"║ "
;
private
static
final
String
BOTTOM_BORDER
=
"╚═══════════════════════════════════════════════════════════════════════════════════════════════════"
;
private
static
final
int
MAX_LEN
=
4000
;
private
static
final
Format
FORMAT
=
new
SimpleDateFormat
(
"MM-dd HH:mm:ss.SSS "
,
Locale
.
getDefault
());
private
static
final
String
NULL
=
"null"
;
private
static
final
String
ARGS
=
"args"
;
private
static
final
Config
CONFIG
=
new
Config
();
private
static
final
String
FILE_SEP
=
System
.
getProperty
(
"file.separator"
);
private
static
final
String
LINE_SEP
=
System
.
getProperty
(
"line.separator"
);
private
static
final
String
TOP_CORNER
=
"┌"
;
private
static
final
String
MIDDLE_CORNER
=
"├"
;
private
static
final
String
LEFT_BORDER
=
"│ "
;
private
static
final
String
BOTTOM_CORNER
=
"└"
;
private
static
final
String
SIDE_DIVIDER
=
"────────────────────────────────────────────────────────"
;
private
static
final
String
MIDDLE_DIVIDER
=
"┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄"
;
private
static
final
String
TOP_BORDER
=
TOP_CORNER
+
SIDE_DIVIDER
+
SIDE_DIVIDER
;
private
static
final
String
MIDDLE_BORDER
=
MIDDLE_CORNER
+
MIDDLE_DIVIDER
+
MIDDLE_DIVIDER
;
private
static
final
String
BOTTOM_BORDER
=
BOTTOM_CORNER
+
SIDE_DIVIDER
+
SIDE_DIVIDER
;
private
static
final
int
MAX_LEN
=
4000
;
private
static
final
Format
FORMAT
=
new
SimpleDateFormat
(
"MM-dd HH:mm:ss.SSS "
,
Locale
.
getDefault
());
private
static
final
String
NULL
=
"null"
;
private
static
final
String
ARGS
=
"args"
;
private
static
final
Config
CONFIG
=
new
Config
();
private
LogUtils
()
{
throw
new
UnsupportedOperationException
(
"u can't instantiate me..."
);
...
...
@@ -344,7 +349,7 @@ public final class LogUtils {
for
(
String
aHead
:
head
)
{
Log
.
println
(
type
,
tag
,
sLogBorderSwitch
?
LEFT_BORDER
+
aHead
:
aHead
);
}
if
(
sLogBorderSwitch
)
Log
.
println
(
type
,
tag
,
SPLIT
_BORDER
);
if
(
sLogBorderSwitch
)
Log
.
println
(
type
,
tag
,
MIDDLE
_BORDER
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录