Skip to content

Commit be520ff

Browse files
committed
see 12/04 log
1 parent 28def9b commit be520ff

File tree

3 files changed

+19
-13
lines changed

3 files changed

+19
-13
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright {yyyy} {name of copyright owner}
189+
Copyright 2017 Blankj
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

update_log.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
* 17/12/04 LogUtils 边框改为单线清爽型
12
* 17/11/30 修复 ToastUtils 背景问题,发布 1.9.10
23
* 17/11/30 修复 ToastUtils 获取背景为空,发布 1.9.9
34
* 17/11/28 修复 EmptyUtils 对 CharSequence 的判断,感谢 jiezigg

utilcode/src/main/java/com/blankj/utilcode/util/LogUtils.java

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,22 @@ public final class LogUtils {
8181
private static int sFileFilter = V; // log 文件过滤器
8282
private static int sStackDeep = 1; // log 栈深度
8383

84-
private static final String FILE_SEP = System.getProperty("file.separator");
85-
private static final String LINE_SEP = System.getProperty("line.separator");
86-
private static final String TOP_BORDER = "╔═══════════════════════════════════════════════════════════════════════════════════════════════════";
87-
private static final String SPLIT_BORDER = "╟───────────────────────────────────────────────────────────────────────────────────────────────────";
88-
private static final String LEFT_BORDER = "║ ";
89-
private static final String BOTTOM_BORDER = "╚═══════════════════════════════════════════════════════════════════════════════════════════════════";
90-
private static final int MAX_LEN = 4000;
91-
private static final Format FORMAT = new SimpleDateFormat("MM-dd HH:mm:ss.SSS ", Locale.getDefault());
92-
private static final String NULL = "null";
93-
private static final String ARGS = "args";
94-
private static final Config CONFIG = new Config();
84+
private static final String FILE_SEP = System.getProperty("file.separator");
85+
private static final String LINE_SEP = System.getProperty("line.separator");
86+
private static final String TOP_CORNER = "┌";
87+
private static final String MIDDLE_CORNER = "├";
88+
private static final String LEFT_BORDER = "│ ";
89+
private static final String BOTTOM_CORNER = "└";
90+
private static final String SIDE_DIVIDER = "────────────────────────────────────────────────────────";
91+
private static final String MIDDLE_DIVIDER = "┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄";
92+
private static final String TOP_BORDER = TOP_CORNER + SIDE_DIVIDER + SIDE_DIVIDER;
93+
private static final String MIDDLE_BORDER = MIDDLE_CORNER + MIDDLE_DIVIDER + MIDDLE_DIVIDER;
94+
private static final String BOTTOM_BORDER = BOTTOM_CORNER + SIDE_DIVIDER + SIDE_DIVIDER;
95+
private static final int MAX_LEN = 4000;
96+
private static final Format FORMAT = new SimpleDateFormat("MM-dd HH:mm:ss.SSS ", Locale.getDefault());
97+
private static final String NULL = "null";
98+
private static final String ARGS = "args";
99+
private static final Config CONFIG = new Config();
95100

96101
private LogUtils() {
97102
throw new UnsupportedOperationException("u can't instantiate me...");
@@ -344,7 +349,7 @@ private static void printHead(final int type, final String tag, final String[] h
344349
for (String aHead : head) {
345350
Log.println(type, tag, sLogBorderSwitch ? LEFT_BORDER + aHead : aHead);
346351
}
347-
if (sLogBorderSwitch) Log.println(type, tag, SPLIT_BORDER);
352+
if (sLogBorderSwitch) Log.println(type, tag, MIDDLE_BORDER);
348353
}
349354
}
350355

0 commit comments

Comments
 (0)