org.apache.commons.logging.LogFactory



API Populatity

69 Client projects

Project: org.apache

Project SpringSource/spring-framework in file ...org.springframework.websocket.HandlerProvider.java (2013-04-21)
@@ -17,6 +17,7 @@
 package org.springframework.websocket;
 
 import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.springframework.beans.BeansException;
 import org.springframework.beans.factory.BeanFactory;
 import org.springframework.beans.factory.BeanFactoryAware;
@@ -32,14 +33,14 @@ import org.springframework.util.ClassUtils;
  */
 public class HandlerProvider<T> implements BeanFactoryAware {
 
+	private Log logger = LogFactory.getLog(this.getClass());
+
 	private final T handlerBean;
 
 	private final Class<? extends T> handlerClass;
 
 	private AutowireCapableBeanFactory beanFactory;
 
-	private Log logger;
-
 
 	public HandlerProvider(T handlerBean) {
 		Assert.notNull(handlerBean, "handlerBean is required");
Project spring-projects/spring-framework in file ...org.springframework.websocket.HandlerProvider.java (2013-04-21)
@@ -17,6 +17,7 @@
 package org.springframework.websocket;
 
 import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.springframework.beans.BeansException;
 import org.springframework.beans.factory.BeanFactory;
 import org.springframework.beans.factory.BeanFactoryAware;
@@ -32,14 +33,14 @@ import org.springframework.util.ClassUtils;
  */
 public class HandlerProvider<T> implements BeanFactoryAware {
 
+	private Log logger = LogFactory.getLog(this.getClass());
+
 	private final T handlerBean;
 
 	private final Class<? extends T> handlerClass;
 
 	private AutowireCapableBeanFactory beanFactory;
 
-	private Log logger;
-
 
 	public HandlerProvider(T handlerBean) {
 		Assert.notNull(handlerBean, "handlerBean is required");
Project netty/netty in file ...in.java.io.netty.logging.CommonsLoggerFactory.java (2012-06-11)
@@ -16,6 +16,7 @@
 package io.netty.logging;
 
 
+import org.apache.commons.logging.LogFactory;
 
 /**
  * Logger factory which creates an
@@ -26,8 +27,6 @@ public class CommonsLoggerFactory extends InternalLoggerFactory {
 
     @Override
     public InternalLogger newInstance(String name) {
-        final org.apache.commons.logging.Log logger =
-            org.apache.commons.logging.LogFactory.getLog(name);
-        return new CommonsLogger(logger, name);
+        return new CommonsLogger(LogFactory.getLog(name), name);
     }
 }