Java slf4j Logger info(Logger logger, String msg, Object... params)

Here you can find the source of info(Logger logger, String msg, Object... params)

Description

info

License

Open Source License

Declaration

public static void info(Logger logger, String msg, Object... params) 

Method Source Code

//package com.java2s;

import org.slf4j.Logger;

public class Main {

    public static void info(Logger logger, String msg, Object... params) {
        if (logger.isInfoEnabled()) {
            logger.info(String.format(msg, params));
        }/*from   w  ww . j  ava2  s  .  co m*/
    }

    public static void info(Logger logger, String msg) {
        if (logger.isInfoEnabled()) {
            logger.info(msg);
        }
    }
}

Related

  1. info(final Logger log, final String message, final Object... args)
  2. info(final Logger logger, final String message)
  3. info(Logger log, Object... objectsToString)
  4. info(Logger logger, String message, Object... objects)
  5. info(Logger logger, String msg)
  6. info(String format, Object... arguments)
  7. infoLogging(Logger log, String logMessage, Object[] obj)
  8. infoTimeTaken(final Logger log, final long startTime, final long numItems, final String message, final Object... args)
  9. interruptCurrentThreadWithLog(Logger logger)