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

Class NoopLogger

src/main/java/org/microhttp/NoopLogger.java:6–32  ·  view source on GitHub ↗

A logger that is disabled and does not log anything.

Source from the content-addressed store, hash-verified

4 * A logger that is disabled and does not log anything.
5 */
6public final class NoopLogger implements Logger {
7
8 private static final NoopLogger INSTANCE = new NoopLogger();
9
10 private NoopLogger() {
11 }
12
13 @Override
14 public boolean enabled() {
15 return false;
16 }
17
18 @Override
19 public void log(LogEntry... entries) {
20
21 }
22
23 @Override
24 public void log(Exception e, LogEntry... entries) {
25
26 }
27
28 public static Logger instance() {
29 return INSTANCE;
30 }
31
32}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected