@Test public void infoMessageAndLazyArguments() { Supplier<Integer> supplier = mockSupplier(42); Logger.info("The number is {}", supplier); verify(supplier, never()).get(); if (infoEnabled) { verify(provider).log(eq(2), isNull(), eq(Level.INFO), isNull(), any(AdvancedMessageFormatter.class), eq("The number is {}"), eq(supplier)); } else { verify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any()); } }
public static void info(final Object message) { if (MINIMUM_LEVEL_COVERS_INFO) { provider.log(STACKTRACE_DEPTH, null, org.tinylog.Level.INFO, null, null, message, (Object[]) null); } }
Logger { public static void info(final Object message) { if (MINIMUM_LEVEL_COVERS_INFO) { provider.log(STACKTRACE_DEPTH, null, org.tinylog.Level.INFO, null, null, message, (Object[]) null); } } }
Logger { public static void info(final Object message) { if (MINIMUM_LEVEL_COVERS_INFO) { provider.log(STACKTRACE_DEPTH, null, org.tinylog.Level.INFO, null, null, message, (Object[]) null); } } private  Logger(); }
Logger { public static void info(final Object message) { if (MINIMUM_LEVEL_COVERS_INFO) { provider.log(STACKTRACE_DEPTH, null, org.tinylog.Level.INFO, null, null, message, (Object[]) 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); }
Logger { public static void info(final Object message) { if (MINIMUM_LEVEL_COVERS_INFO) { provider.log(STACKTRACE_DEPTH, null, org.tinylog.Level.INFO, null, null, message, (Object[]) 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);  }