cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Morandini <>
Subject Re: logging from custom transformer
Date Thu, 22 May 2003 08:25:16 GMT
andi wrote:
> in the (sub)sitemap i have declared
> <map:transformer logger="mypackage.MenueTransformer"
> name="menue" src="myPackage.MenueTransformer" />
> what do i have to do to get the logging-messages into
> the logfiles..

Add something like this in the <targets> element of your <cocon 
home>/WEB-INF/logkit.xconf (I use rotating logs, you may dispense with it):

<cocoon id="mypackage">
	<format type="cocoon">
		%7.7{priority} %{time}   [%{category}] (%{uri}) 	 
%{thread}/%{class:short}: %{message}\n%{throwable}
	<rotation type="revolving" init="1" max="4">

Then add this in the <categories> element of the same file:
<category name="mypackage" log-level="DEBUG">
	<log-target id-ref="mypackage"/>

It should work.


                Luca Morandini
                GIS Consultant

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message