MCPcopy Create free account
hub / github.com/1345414527/MIT6.830 / log

Method log

src/java/simpledb/common/Debug.java:33–38  ·  view source on GitHub ↗

Log message if the log level >= level. Uses printf.

(int level, String message, Object... args)

Source from the content-addressed store, hash-verified

31
32 /** Log message if the log level >= level. Uses printf. */
33 public static void log(int level, String message, Object... args) {
34 if (isEnabled(level)) {
35 System.out.printf(message, args);
36 System.out.println();
37 }
38 }
39
40 /** @return true if level is being logged. */
41 public static boolean isEnabled(int level) {

Callers 15

matchTuplesMethod · 0.95
logCommitMethod · 0.95
logWriteMethod · 0.95
logXactionBeginMethod · 0.95
logCheckpointMethod · 0.95
logTruncateMethod · 0.95
insertEntryMethod · 0.95
markSlotUsedMethod · 0.95
getKeyMethod · 0.95
getChildIdMethod · 0.95
readPageMethod · 0.95
insertTupleMethod · 0.95

Calls 1

isEnabledMethod · 0.95

Tested by 1

matchTuplesMethod · 0.76