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) {
      if (isTrace)
         NDC.push(cacheName);
   }
   public static void popNDC(boolean isTrace) {
      if (isTrace)
         NDC.pop();
   }
New to GrepCode? Check out our FAQ X