Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.infinispan.commons.logging;
 
Factory that creates Log instances.

Author(s):
Manik Surtani
Since:
4.0
public class LogFactory {
   public static Log getLog(Class<?> clazz) {
      return Logger.getMessageLogger(Log.classclazz.getName());
   }
   public static <T> T getLog(Class<?> clazzClass<T> logClass) {
      return Logger.getMessageLogger(logClassclazz.getName());
   }
   public static void pushNDC(String cacheNameboolean isTrace) {
      // Disabled NDC usage until https://issues.jboss.org/browse/JBLOGGING-106 is fixed or
      // we introduce Log4j2 https://issues.jboss.org/browse/ISPN-3076
      // See https://issues.jboss.org/browse/ISPN-4498 for more details
//      if (isTrace)
//         NDC.push(cacheName);
   }
   public static void popNDC(boolean isTrace) {
      // Disabled NDC usage until https://issues.jboss.org/browse/JBLOGGING-106 is fixed or
      // we introduce Log4j2 https://issues.jboss.org/browse/ISPN-3076
      // See https://issues.jboss.org/browse/ISPN-4498 for more details
//      if (isTrace)
//         NDC.pop();
   }
New to GrepCode? Check out our FAQ X