MCPcopy Create free account
hub / github.com/afkT/DevUtils / DevLogger

Class DevLogger

lib/DevApp/src/main/java/dev/utils/app/logger/DevLogger.java:9–370  ·  view source on GitHub ↗

detail: 日志操作类 ( 对外公开直接调用 ) @author Ttt

Source from the content-addressed store, hash-verified

7 * @author Ttt
8 */
9public final class DevLogger {
10
11 private DevLogger() {
12 }
13
14 // 包下 LoggerPrinter 类持有对象
15 private static final IPrinter sPrinter = new LoggerPrinter();
16
17 // ==========
18 // = 配置方法 =
19 // ==========
20
21 /**
22 * 使用单次其他日志配置
23 * @param logConfig 日志配置
24 * @return {@link IPrinter}
25 */
26 public static IPrinter other(final LogConfig logConfig) {
27 return sPrinter.other(logConfig);
28 }
29
30 /**
31 * 获取日志配置信息
32 * @return {@link LogConfig} 日志配置
33 */
34 public static LogConfig getLogConfig() {
35 return sPrinter.getLogConfig();
36 }
37
38 /**
39 * 初始化日志配置信息 ( 使用默认配置 )
40 * @return {@link LogConfig} 日志配置
41 */
42 public static LogConfig initialize() {
43 return sPrinter.initialize();
44 }
45
46 /**
47 * 自定义日志配置信息
48 * @param logConfig 日志配置
49 */
50 public static void initialize(final LogConfig logConfig) {
51 sPrinter.initialize(logConfig);
52 }
53
54 // =============================
55 // = 使用默认 TAG ( 日志打印方法 ) =
56 // =============================
57
58 /**
59 * 打印 Log.DEBUG
60 * @param message 日志信息
61 * @param args 格式化参数
62 */
63 public static void d(
64 final String message,
65 final Object... args
66 ) {

Callers

nothing calls this directly

Calls 6

vMethod · 0.65
dMethod · 0.65
iMethod · 0.65
wMethod · 0.65
eMethod · 0.65
wtfMethod · 0.65

Tested by

no test coverage detected