Logger { private static boolean isCoveredByMinimumLevel(final org.tinylog.Level level) { return provider.getMinimumLevel(null).ordinal() <= level.ordinal(); } private  Logger(); static Level getLevel(); static Level getLevel(final Package packageObject); static Level getLevel(final Class<?> classObject); static void trace(final Object message); static void trace(final String message); static void trace(final Supplier<?> message); static void trace(final String message, final Object... arguments); static void trace(final String message, final Supplier<?>... arguments); static void trace(final Throwable exception); static void trace(final Throwable exception, final String message); static void trace(final Throwable exception, final Supplier<String> message); static void trace(final Throwable exception, final String message, final Object... arguments); static void trace(final Throwable exception, final String message, final Supplier<?>... arguments); static void debug(final Object message); static void debug(final String message); static void debug(final Supplier<?> message); static void debug(final String message, final Object... arguments); static void debug(final String message, final Supplier<?>... arguments); static void debug(final Throwable exception); static void debug(final Throwable exception, final String message); static void debug(final Throwable exception, final Supplier<String> message); static void debug(final Throwable exception, final String message, final Object... arguments); static void debug(final Throwable exception, final String message, final Supplier<?>... arguments); static void info(final Object message); static void info(final String message); static void info(final Supplier<?> message); static void info(final String message, final Object... arguments); static void info(final String message, final Supplier<?>... arguments); static void info(final Throwable exception); static void info(final Throwable exception, final String message); static void info(final Throwable exception, final Supplier<String> message); static void info(final Throwable exception, final String message, final Object... arguments); static void info(final Throwable exception, final String message, final Supplier<?>... arguments); static void warn(final Object message); static void warn(final String message); static void warn(final Supplier<?> message); static void warn(final String message, final Object... arguments); static void warn(final String message, final Supplier<?>... arguments); static void warn(final Throwable exception); static void warn(final Throwable exception, final String message); static void warn(final Throwable exception, final Supplier<String> message); static void warn(final Throwable exception, final String message, final Object... arguments); static void warn(final Throwable exception, final String message, final Supplier<?>... arguments); static void error(final Object message); static void error(final String message); static void error(final Supplier<?> message); static void error(final String message, final Object... arguments); static void error(final String message, final Supplier<?>... arguments); static void error(final Throwable exception); static void error(final Throwable exception, final String message); static void error(final Throwable exception, final Supplier<String> message); static void error(final Throwable exception, final String message, final Object... arguments); static void error(final Throwable exception, final String message, final Supplier<?>... arguments);  }
@Test public void coveredByMinimumLevel() throws Exception { assertThat(isCoveredByMinimumLevel(Level.TRACE)).isEqualTo(traceEnabled); assertThat(isCoveredByMinimumLevel(Level.DEBUG)).isEqualTo(debugEnabled); assertThat(isCoveredByMinimumLevel(Level.INFO)).isEqualTo(infoEnabled); assertThat(isCoveredByMinimumLevel(Level.WARN)).isEqualTo(warnEnabled); assertThat(isCoveredByMinimumLevel(Level.ERROR)).isEqualTo(errorEnabled); }