(LogEntry... entries)
| 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) { |