User Tools

Site Tools


java:genericloggerasbean

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

java:genericloggerasbean [2014/12/24 10:42] (current)
Line 1: Line 1:
 +====== Implementing a logger as a bean in Spring ======
 +
 +<code xml>
 + <​!-- ​ a generic logger -->
 +  <bean id="​log"​
 +        class="​org.apache.commons.logging.impl.LogFactoryImpl"​
 +        factory-method="​getLog"​
 +        scope="​singleton">​
 +    <​constructor-arg type="​java.lang.String"​ value="​Mercurio"/>​
 +  </​bean>​
 +
 +</​code>​
 +
  
java/genericloggerasbean.txt ยท Last modified: 2014/12/24 10:42 (external edit)