Java slf4j Logger loggerWithName(Class klass, String name)

Here you can find the source of loggerWithName(Class klass, String name)

Description

logger With Name

License

Apache License

Declaration

public static Logger loggerWithName(Class klass, String name) 

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 loggerWithName(Class klass, String name) {
        return LoggerFactory.getLogger(String.format("%s.%s", klass.getName(), name));
    }//from   w w w .ja v a 2  s . c o  m
}

Related

  1. logError(String message, Throwable ex, Logger logger, String userId)
  2. logErrors(Logger logger, List strings)
  3. LogException(Logger log, String descrption, Throwable e)
  4. logExit(Logger logger, String methodName, String returnValue, long timeSpent)
  5. loggerForThisClass()
  6. logInfo(Logger log)
  7. logInfo(Logger log, Throwable t)
  8. logInfo(Logger logger, String s)
  9. logJavaProperties(Logger log)