diff --git a/LICENSE b/LICENSE index 8dada3edaf50dbc082c9a125058f25def75e625a..99d88334772021edeecd9c749cc830aea945df4b 100644 --- a/LICENSE +++ b/LICENSE @@ -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. diff --git a/update_log.md b/update_log.md index 64b86efb5c365e6ccb5a8ae3bea4dbbfefec79df..d1e35e78836b19510be2f1a8f843b90f81b2b0e5 100644 --- a/update_log.md +++ b/update_log.md @@ -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 diff --git a/utilcode/src/main/java/com/blankj/utilcode/util/LogUtils.java b/utilcode/src/main/java/com/blankj/utilcode/util/LogUtils.java index 04f5c882b70c92df4ce3ce0a9e5e5a7ca0a8af4a..bb856431660e2140f705168ee768116c8bfff7a3 100644 --- a/utilcode/src/main/java/com/blankj/utilcode/util/LogUtils.java +++ b/utilcode/src/main/java/com/blankj/utilcode/util/LogUtils.java @@ -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); } }