Here you can find the source of getLogger(Class clazz)
Parameter | Description |
---|---|
clazz | the class needed for the logger |
public static Logger getLogger(Class clazz)
//package com.java2s; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Main { /**//from w ww.j a va 2 s. c o m * Gets the logger from the servicelocator * * @param clazz the class needed for the logger * @return the Log object */ public static Logger getLogger(Class clazz) { return LoggerFactory.getLogger(clazz); } /** * Gets the logger from the servicelocator * * @param name of the appender for the logger * @return the Log object */ public static Logger getLogger(String name) { return LoggerFactory.getLogger(name); } }