Class LazyArgLogger


  • public final class LazyArgLogger
    extends java.lang.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​(java.util.function.Supplier<java.lang.Object> argSupplier)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • lazy

        public static LazyArgLogger lazy​(java.util.function.Supplier<java.lang.Object> argSupplier)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object