@Test public void disabled() { JBossLoggingProvider provider = new JBossLoggingProvider(); assertThat(provider.isEnabled(1, null, Level.TRACE)).isFalse(); assertThat(provider.isEnabled(1, null, Level.DEBUG)).isFalse(); }
@Override public boolean isEnabled(final int depth, final String tag, final Level level) { String callerClassName = RuntimeProvider.getCallerClassName(depth + 1); return Logger.getLogger(callerClassName).isEnabled(translate(level)); }
JBossLoggingProvider 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).isEnabled(translate(level)); } }
JBossLoggingProvider 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).isEnabled(translate(level)); } JBossLoggingProvider(); }
JBossLoggingProvider 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).isEnabled(translate(level)); } JBossLoggingProvider(); @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(); }
JBossLoggingProvider 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).isEnabled(translate(level)); } JBossLoggingProvider(); @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();  }