MCPcopy Create free account
hub / github.com/ReadyTalk/avian / publish

Method publish

classpath/java/util/logging/Logger.java:218–229  ·  view source on GitHub ↗
(LogRecord r)

Source from the content-addressed store, hash-verified

216 }
217
218 public void publish(LogRecord r) {
219 StringBuilder sb = new StringBuilder();
220 sb.append(r.getLoggerName());
221 indent(sb, NAME_WIDTH - r.getLoggerName().length());
222 sb.append(r.getSourceMethodName());
223 indent(sb, METHOD_WIDTH - r.getSourceMethodName().length());
224 sb.append(r.getLevel().getName());
225 indent(sb, LEVEL_WIDTH - r.getLevel().getName().length());
226 sb.append(r.getMessage());
227 maybeLogThrown(sb, r.getThrown());
228 System.out.println(sb.toString());
229 }
230 }
231
232}

Callers 1

publishMethod · 0.45

Calls 12

appendMethod · 0.95
indentMethod · 0.95
maybeLogThrownMethod · 0.95
toStringMethod · 0.95
getLoggerNameMethod · 0.80
getSourceMethodNameMethod · 0.80
getThrownMethod · 0.80
lengthMethod · 0.65
getNameMethod · 0.65
getLevelMethod · 0.45
getMessageMethod · 0.45
printlnMethod · 0.45

Tested by

no test coverage detected