MCPcopy Index your code
hub / github.com/Tencent/APIJSON / logInfo

Method logInfo

APIJSONORM/src/main/java/apijson/Log.java:56–67  ·  view source on GitHub ↗

log info by level tag and msg @param TAG @param msg @param level

(String TAG, String msg, String level)

Source from the content-addressed store, hash-verified

54 * @param level
55 */
56 public static void logInfo(String TAG, String msg, String level) {
57 if (level == null || level.isEmpty()) {
58 level = LEVEL;
59 }
60
61 if (level.equals(LEVEL_VERBOSE) || level.equals(LEVEL_INFO)) {
62 System.out.println(DATE_FORMAT.format(System.currentTimeMillis()) + ": " + TAG + "." + level + ": " + msg);
63 }
64 else if (level.equals(LEVEL_DEBUG) || level.equals(LEVEL_ERROR) || level.equals(LEVEL_WARN)) {
65 System.err.println(DATE_FORMAT.format(System.currentTimeMillis()) + ": " + TAG + "." + level + ": " + msg);
66 }
67 }
68
69 /**
70 * @param TAG

Callers 6

dMethod · 0.95
fdMethod · 0.95
vMethod · 0.95
iMethod · 0.95
eMethod · 0.95
wMethod · 0.95

Calls 3

formatMethod · 0.65
isEmptyMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected