Here you can find the source of info(final Logger log, final String message, final Object... args)
public static void info(final Logger log, final String message, final Object... args)
//package com.java2s; //License from project: Apache License import org.slf4j.Logger; public class Main { public static void info(final Logger log, final String message, final Object... args) { log.info(getFormattedMessage(message, args)); }/* w w w . j av a 2 s .co m*/ private static String getFormattedMessage(final String message, final Object... args) { String formattedMessage = message; if (args != null && args.length > 0) { formattedMessage = String.format(message, args); } return formattedMessage; } }