Java slf4j Logger get(Class clazz)

Here you can find the source of get(Class clazz)

Description

get

License

Apache License

Declaration

public static Logger get(Class<?> clazz) 

Method Source Code


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

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

public class Main {

    public static Logger get(Class<?> clazz) {
        return LoggerFactory.getLogger(clazz);
    }//from   ww  w.java  2  s  . c  om

    public static Logger get(String name) {
        return LoggerFactory.getLogger(name);
    }

    public static Logger get() {
        StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
        return LoggerFactory.getLogger(stackTrace[2].getClassName());
    }
}

Related

  1. extractValue(String var)
  2. findMarker(Marker marker, String name)
  3. format(final String pattern, final @Nullable Object... arguments)
  4. format(String format, Object... args)
  5. format(String messagePattern, Object... args)
  6. getClassLogger()
  7. getErrorMsg(String format, Object[] argArray)
  8. getIntValue(String strVal, int defVal)
  9. getLog(Class clazz)