Package com.diffplug.spotless
Class LazyArgLogger
- java.lang.Object
-
- com.diffplug.spotless.LazyArgLogger
-
public final class LazyArgLogger extends Object
This is a utility class to allow for lazy evaluation of arguments to be passed to a logger and thus avoid unnecessary computation of the arguments if the log level is not enabled.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LazyArgLogger
lazy(Supplier<Object> argSupplier)
String
toString()
-