Here you can find the source of info(Class> clz, String logStr)
Parameter | Description |
---|---|
clz | the class to be logged |
logStr | the message string to be logged |
public static void info(Class<?> clz, String logStr)
//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); } }