MCPcopy
hub / github.com/IPADS-SAI/MobiAgent / log

Method log

app/app/src/main/java/com/mobi/agent/CommonUtils.java:48–67  ·  view source on GitHub ↗

统一的日志打印方法 @param tag 日志标签 @param message 日志消息 @param level 日志级别 (d, i, w, e)

(String tag, String message, String level)

Source from the content-addressed store, hash-verified

46 * @param level 日志级别 (d, i, w, e)
47 */
48 public static void log(String tag, String message, String level) {
49 if (tag == null || message == null) return;
50
51 switch (level.toLowerCase()) {
52 case "d":
53 Log.d(tag, message);
54 break;
55 case "i":
56 Log.i(tag, message);
57 break;
58 case "w":
59 Log.w(tag, message);
60 break;
61 case "e":
62 Log.e(tag, message);
63 break;
64 default:
65 Log.d(tag, message);
66 }
67 }
68
69 /**
70 * Debug日志

Callers 15

logdMethod · 0.95
logiMethod · 0.95
logwMethod · 0.95
logeMethod · 0.95
showLoadingAnimationFunction · 0.80
hideLoadingAnimationFunction · 0.80
handleWaitFunction · 0.80
takeScreenshotFunction · 0.80
handleClickActionFunction · 0.80
handleSwipeActionFunction · 0.80
refreshScreenshotFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected