Apache » Cocoon »

  Cocoon Spring Configurator
      2.1
   homepage

Cocoon Spring Configurator 2.1

Log4j Support

You can use the Configurator to configure Log4j through an XML configuration file:

  <bean name="org.apache.cocoon.spring.configurator.log4j"
        class="org.apache.cocoon.spring.configurator.log4j.Log4JConfigurator"
        scope="singleton">
    <property name="resource" value="/WEB-INF/cocoon/log4j.xconf"/>
  </bean>

The property resource should point to a valid Log4j XML configuration file. You can use all properties configured through the Configurator in the XML configuration and reference the actual values.