Return-Path: Delivered-To: apmail-cocoon-docs-archive@www.apache.org Received: (qmail 41922 invoked from network); 3 Jul 2006 14:23:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jul 2006 14:23:56 -0000 Received: (qmail 94403 invoked by uid 500); 3 Jul 2006 14:23:56 -0000 Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 94252 invoked by uid 500); 3 Jul 2006 14:23:55 -0000 Mailing-List: contact docs-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: docs@cocoon.apache.org List-Id: Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 94236 invoked by uid 99); 3 Jul 2006 14:23:55 -0000 Received: from [207.7.158.203] (HELO cocoon.zones.apache.org) (207.7.158.203) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jul 2006 07:23:55 -0700 Message-ID: <11852381.1151936545782.JavaMail.daisy@cocoon.zones.apache.org> Date: Mon, 3 Jul 2006 14:22:25 +0000 (GMT+00:00) From: daisy@cocoon.zones.apache.org To: docs@cocoon.apache.org Subject: [DAISY] Updated: Configuration Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N A document has been updated: http://cocoon.zones.apache.org/daisy/documentation/1162.html Document ID: 1162 Branch: main Language: default Name: Configuration (unchanged) Document Type: Cocoon Document (unchanged) Updated on: 7/3/06 2:22:11 PM Updated by: Carsten Ziegeler A new version has been created, state: publish Parts =3D=3D=3D=3D=3D Content ------- This part has been updated. Mime type: text/xml (unchanged) File name: (unchanged) Size: 6964 bytes (previous version: 5082 bytes) Content diff: (76 equal lines skipped) lookup the Settings bean. This bean provides access to all available pr= operties.

=20 +++

Logging

+++=20 +++

Cocoon uses Log4J=C2= =A0by default +++ and all log statements are written to a single log file in the temporar= y +++ directory of the application server. The configuration for log4j is in = the +++ WEB-INF directory in the log4j.xconf file. The logging can be controlle= d in +++ various ways as described below.

+++=20 +++

Location of the logging configuration

+++=20 +++

By default, Cocoon loads WEB-INF/log4j.xconf as the configu= ration +++ for Log4J. If you want to make any changes to the configuration file, i= t is +++ advisable to not alter this default file but instead use your own confi= guration. +++ By setting the org.apache.cocoon.logging.configuration propert= y in your +++ properties, you can point to a different configuration file.

+++=20 +++

Overriding the log level

+++=20 +++

For development you can override the configured log level from your = Log4J +++ configuration by setting the property +++ org.apache.cocoon.override.loglevel with the name of the level= . This is +++ for example very usefull to set the log level to debug for development = purposes +++ without changing the logging configuration.

+++=20 +++

Shielded Classloading

+++=20 +++

By default, Cocoon is configured to use shielded classloading. There= fore an +++ own instance of Log4J is instantiated for just the Cocoon web applicati= on. If +++ you want to share a global Log4J configuration between web applications= , you +++ have to turn off the shielded classloading for the whole Cocoon instanc= e of for +++ just Log4J.

+++=20 +++

Using your own logging system

+++=20 +++

If you want to use your own logging system instead of Log4J you can = setup a +++ Logger bean in the root application context of Spring. This bean must b= e +++ registered with the name org.apache.avalon.framework.logger.Logger<= /em> and +++ it must conform to the interface with this name.

+++=20

Component Configurations

=20

While older versions of Cocoon used one single big file for the conf= iguration (21 equal lines skipped) Avalon based configuration files from "config/xconf" and all Spring bea= n configuration files from "config/spring" are included.

=20 +++

Shielded Classloading

+++=20 +++

TBD

+++=20 Fields =3D=3D=3D=3D=3D=3D no changes Links =3D=3D=3D=3D=3D no changes Custom Fields =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D no changes Collections =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D no changes