소스 검색

#137 WebSecurityConfigurerAdapter no longer uses getClass() for logger

Previously it was difficult to change log levels due to CGLIB proxying of
the class which impacted the logger name.
Rob Winch 12 년 전
부모
커밋
70b3a330ef

+ 1 - 1
config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.java

@@ -47,7 +47,7 @@ import org.springframework.security.web.access.intercept.FilterSecurityIntercept
  * @author Rob Winch
  */
 public abstract class WebSecurityConfigurerAdapter implements SecurityConfigurer<Filter,WebSecurity> {
-    private final Log logger = LogFactory.getLog(getClass());
+    private final Log logger = LogFactory.getLog(WebSecurityConfigurerAdapter.class);
 
     private ApplicationContext context;