Logger { public static Level getLevel() { return translateLevel(provider.getMinimumLevel(null)); } 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 gettingLevel() { String name = level.toString().replace(Level.WARN.toString(), org.pmw.tinylog.Level.WARNING.toString()); org.pmw.tinylog.Level level = org.pmw.tinylog.Level.valueOf(name); assertThat(Logger.getLevel()).isEqualTo(level); assertThat(Logger.getLevel(LoggerTest.class.getPackage())).isEqualTo(level); assertThat(Logger.getLevel(LoggerTest.class)).isEqualTo(level); }