User Tools

Site Tools


java:genericloggerasbean

Implementing a logger as a bean in Spring

	<!--  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>
java/genericloggerasbean.txt · Last modified: 2014/12/24 10:42 (external edit)