Skip to content

Commit

Permalink
see 12/04 log
Browse files Browse the repository at this point in the history
  • Loading branch information
Blankj committed Dec 4, 2017
1 parent 28def9b commit be520ff
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions update_log.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* 17/12/04 LogUtils 边框改为单线清爽型
* 17/11/30 修复 ToastUtils 背景问题,发布 1.9.10
* 17/11/30 修复 ToastUtils 获取背景为空,发布 1.9.9
* 17/11/28 修复 EmptyUtils 对 CharSequence 的判断,感谢 jiezigg
Expand Down
29 changes: 17 additions & 12 deletions utilcode/src/main/java/com/blankj/utilcode/util/LogUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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...");
Expand Down Expand Up @@ -344,7 +349,7 @@ private static void printHead(final int type, final String tag, final String[] h
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);
}
}

Expand Down

0 comments on commit be520ff

Please sign in to comment.