cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [DAISY] Created: Logging configuration
Date Fri, 06 Jul 2007 11:11:40 GMT
A new document has been created.

Document ID: 1399
Branch: main
Language: default
Name: Logging configuration
Document Type: Cocoon Document
Created: 7/6/07 11:11:18 AM
Creator (owner): Grzegorz Kossakowski
State: publish


Mime type: text/xml
Size: 1757 bytes


<p>Cocoon uses Log4j library for logging and uses it quite extensively so log
files can be very valuable source of information how things are performed. There
are five standard log levels to choose in order to limit amount of information
dumped to log files:</p>


<p>In production environment it is reasonable to set a log level to
<tt>ERROR</tt> or <tt>FATAL_ERROR</tt> so only very important events
are logged
(like crashes). While developing an application you would probably like to see
much more. It's up to you to choose an approporiate log level; little
experimantation will give you sense of each setting.</p>

<h1>Tweaking the configuration</h1>

<p>Configuration in Cocoon is handled by <a href="daisy:1304">Spring
configurator</a>, go there for general information.</p>

<h2>How to set up a log level</h2>

<p class="note">Instructions put below assume that you have created a block
according to this <a href="daisy:1159">tutorial</a>. Please refer to it, first.

<p>Steps that you need to perform:</p>

<p>create a <tt>properties</tt> subfolder in your block:</p>

<p>create a new file in that folder that should have as ending
<tt>.properties</tt>, e.g. <tt></tt></p>
<li>inside that file you have to put this line if you want to set log level to


<p>That's all! Restart your webapp and you should see now a detailed log
information in a file in:</p>



The document belongs to the following collections: cdocs-core

View raw message