Java slf4j Logger getLogger()

Here you can find the source of getLogger()

Description

get Logger

License

Open Source License

Declaration

public static Logger getLogger() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Main {
    public static Logger getLogger() {
        final Throwable t = new Throwable();
        t.fillInStackTrace();//from ww  w  . j  a v  a 2  s.  c o m
        final String clazz = t.getStackTrace()[1].getClassName();
        return LoggerFactory.getLogger(clazz);
    }
}

Related

  1. get(Class clazz)
  2. getClassLogger()
  3. getErrorMsg(String format, Object[] argArray)
  4. getIntValue(String strVal, int defVal)
  5. getLog(Class clazz)
  6. getLogger()
  7. getLogger()
  8. getLogger(Class clazz)
  9. getLogger(Class clazz)