Class Logger


  • public class Logger
    extends Object
    A Logger that supports lazy evaluation of passend values.

    Example:

    
     // without lazy logger
     if (logger.isDebug()) {
         logger.debug("value: {}", this.expensiveComputation());
     }
    
     // with lazy logger
     logger.debug("value: {}", this::expensiveComputation);
     
    See Also:
    LoggerFactory