Java slf4j Logger info(Class clz, String logStr)

Here you can find the source of info(Class clz, String logStr)

Description

Log a message at the INFO level.

License

Apache License

Parameter

Parameter Description
clz the class to be logged
logStr the message string to be logged

Declaration

public static void info(Class<?> clz, String logStr) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import org.slf4j.LoggerFactory;

public class Main {
    /**/*from   w w w.j a v a  2s.com*/
     * Log a message at the INFO level.
     *
     * @param clz    the class to be logged
     * @param logStr the message string to be logged
     */
    public static void info(Class<?> clz, String logStr) {
        LoggerFactory.getLogger(clz).info("[" + clz.getSimpleName() + "] " + logStr);
    }
}

Related

  1. getLoggerLevel(Logger logger)
  2. getLong(Properties config, String key, long defaultValue)
  3. getMessage(String message, Object... args)
  4. getTraceLevel(Logger logger)
  5. ic static void i(String fmt, Object... args)
  6. info(final Logger log, final String message, final Object... args)
  7. info(final Logger logger, final String message)
  8. info(Logger log, Object... objectsToString)
  9. info(Logger logger, String message, Object... objects)