MCPcopy Create free account
hub / github.com/ebarlas/microhttp / log

Method log

src/main/java/org/microhttp/DebugLogger.java:15–22  ·  view source on GitHub ↗
(LogEntry... entries)

Source from the content-addressed store, hash-verified

13 }
14
15 @Override
16 public void log(LogEntry... entries) {
17 long uptime = Duration.ofNanos(System.nanoTime() - epoch).toMillis();
18 String text = Stream.of(entries)
19 .map(e -> e.key() + "=" + e.value())
20 .collect(Collectors.joining(", ", "[" + uptime + "] ", ""));
21 System.out.println(text);
22 }
23
24 @Override
25 public void log(Exception e, LogEntry... entries) {

Callers

nothing calls this directly

Calls 1

nanoTimeMethod · 0.65

Tested by

no test coverage detected