@Test public void shouldNotGetMessageIfLoggerDisabledForError() { when(innerLogger.isErrorEnabled()).thenReturn(false); logger.error(msgSupplier); verify(innerLogger).isErrorEnabled(); verifyNoMoreInteractions(innerLogger, msgSupplier); }
public void error(final Supplier<SchemaAndValue> msgSupplier) { if (!inner.isErrorEnabled()) { return; } error(msgSupplier.get()); }
StructuredLoggerImpl implements StructuredLogger { public void error(final Supplier<SchemaAndValue> msgSupplier) { if (!inner.isErrorEnabled()) { return; } error(msgSupplier.get()); } }
StructuredLoggerImpl implements StructuredLogger { public void error(final Supplier<SchemaAndValue> msgSupplier) { if (!inner.isErrorEnabled()) { return; } error(msgSupplier.get()); } StructuredLoggerImpl(final Logger inner); }
StructuredLoggerImpl implements StructuredLogger { public void error(final Supplier<SchemaAndValue> msgSupplier) { if (!inner.isErrorEnabled()) { return; } error(msgSupplier.get()); } StructuredLoggerImpl(final Logger inner); String getName(); void error(final Supplier<SchemaAndValue> msgSupplier); void error(final SchemaAndValue msg); void info(final Supplier<SchemaAndValue> msgSupplier); void info(final SchemaAndValue msg); void debug(final Supplier<SchemaAndValue> msgSupplier); void debug(final SchemaAndValue msg); }
StructuredLoggerImpl implements StructuredLogger { public void error(final Supplier<SchemaAndValue> msgSupplier) { if (!inner.isErrorEnabled()) { return; } error(msgSupplier.get()); } StructuredLoggerImpl(final Logger inner); String getName(); void error(final Supplier<SchemaAndValue> msgSupplier); void error(final SchemaAndValue msg); void info(final Supplier<SchemaAndValue> msgSupplier); void info(final SchemaAndValue msg); void debug(final Supplier<SchemaAndValue> msgSupplier); void debug(final SchemaAndValue msg);  }