JavaUtilLoggingProvider implements LoggingProvider { @Override public boolean isEnabled(final int depth, final String tag, final Level level) { String callerClassName = RuntimeProvider.getCallerClassName(depth + 1); return Logger.getLogger(callerClassName).isLoggable(translate(level)); } JavaUtilLoggingProvider(); @Override ContextProvider getContextProvider(); @Override Level getMinimumLevel(); @Override Level getMinimumLevel(final String tag); @Override boolean isEnabled(final int depth, final String tag, final Level level); @Override void log(final int depth, final String tag, final Level level, final Throwable exception, final MessageFormatter formatter,
		final Object obj, final Object... arguments); @Override void log(final String loggerClassName, final String tag, final Level level, final Throwable exception,
		final MessageFormatter formatter, final Object obj, final Object... arguments); @Override void shutdown();  }
@Test public void enabled() { JavaUtilLoggingProvider provider = new JavaUtilLoggingProvider(); assertThat(provider.isEnabled(1, null, Level.INFO)).isTrue(); assertThat(provider.isEnabled(1, null, Level.WARN)).isTrue(); assertThat(provider.isEnabled(1, null, Level.ERROR)).isTrue(); }
@Test public void disabled() { JavaUtilLoggingProvider provider = new JavaUtilLoggingProvider(); assertThat(provider.isEnabled(1, null, Level.TRACE)).isFalse(); assertThat(provider.isEnabled(1, null, Level.DEBUG)).isFalse(); }