src/main/java/com/arpnetworking/steno/Logger.java
public void debug(final Consumer<DeferredLogBuilder> consumer) {
        if (_slf4jLogger.isDebugEnabled()) {
            final LogBuilder logBuilder = new DefaultLogBuilder(this, LogLevel.DEBUG);
            consumer.accept(logBuilder);
            logBuilder.log();
        }
    }
public void debug(final Consumer<DeferredLogBuilder> consumer) {
        if (_slf4jLogger.isDebugEnabled()) {
            final LogBuilder logBuilder = new DefaultLogBuilder(this, LogLevel.DEBUG);
            consumer.accept(logBuilder);
            logBuilder.log();
        }
    }
public void debug ( final Consumer < DeferredLogBuilder > consumer ) { if ( _slf4jLogger . isDebugEnabled ( ) ) { final LogBuilder logBuilder = new DefaultLogBuilder ( this , LogLevel . DEBUG ) ; consumer . accept ( logBuilder ) ; logBuilder . log ( ) ; } }
Create a new log event at the debug level. The provided <code>Consumer</code>
populates a <code>DeferredLogBuilder</code> to define the log event. The
consumer may not be invoked if it is not necessary. Therefore it is
important not to include side-effects in the provided <code>Consumer</code>.

@since 1.12.0

@param consumer Function to populate the <code>DeferredLogBuilder</code>.
Create a new log event at the debug level . The provided <code > Consumer< / code > populates a <code > DeferredLogBuilder< / code > to define the log event . The consumer may not be invoked if it is not necessary . Therefore it is important not to include side - effects in the provided <code > Consumer< / code > .