APISonar


java.util.function.BiConsumer.log

> java > util > function > BiConsumer > log
java APIs util APIs function APIs BiConsumer APIs log APIs

Example 1
private final BiConsumer<Throwable, Supplier<String>> logger;

	public static LoggingListener forJavaUtilLogging(Level logLevel) {
		Logger logger = Logger.getLogger(LoggingListener.class.getName());
		return new LoggingListener((t, messageSupplier) -> logger.log(logLevel, t, messageSupplier));
	}