@FunctionalInterface public interface DebugLogger
Modifier and Type | Method and Description |
---|---|
void |
debug(DebugTopic topic,
String message)
Implement this method to provide logging.
|
default void |
debug(DebugTopic topic,
String format,
Object... args)
Handy method witch uses the Java String#format to format the message.
|
default boolean |
isEnabled(DebugTopic topic)
Check if debugging is enabled before doing heavy work like calculating statistics
before logging it.
|
default boolean isEnabled(DebugTopic topic)
void debug(DebugTopic topic, String message)
default void debug(DebugTopic topic, String format, Object... args)
Copyright © 2019. All rights reserved.