cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oscar Picasso <oscgoo...@yahoo.com>
Subject Re: Logging to System.err or System.out
Date Sun, 11 Jan 2004 17:21:05 GMT
Thanks for the answer.

As a matter of fact yesterday I came accross "ConfiguringTheLogs.html" and
started to play with my logkit .conf.

At first I was confused because of my log4j background, but now I think logkit
is more convenient and as easy as log4j to configure.


--- Sebastian Klamar <sebi+lists.cocoon-users@tux.wh17.tu-dresden.de> wrote:
> * Oscar Picasso [2004-01-09 19:03 +0100] wrote:
> > What is the syntax of  the logkit/targets/cocoon element (in logkit.conf)
> to
> > create a target that logs to System.err or System.out instead of a file?
> 
> Reading
>
<http://www.apache.org/~jefft/forrest/samples/wikirenderer-site/wiki/ConfiguringTheLogs.html>
> I suppose you have to add the StreamTargetFactory to the list of
> factories in logkit.xconf.  After that you can declare your target.
> 
> <factories>
>   <!-- ... -->
>   <factory class="org.apache.log.output.io.StreamTarget"
> type="stream-target"/>
> </factory>
> 
> <targets>
>   <!-- ... -->
> 
>   <stream-target id="stream-target-id">
>     <stream>System.out</stream>
>     <format type="pattern">
>       %7.7{priority} %{time} [%{category}] : %{message}\n%{throwable}
>     </format>
>   </stream-target>
> <targets>
> 
> (not tested)
> 
> 
> HTH -- Sebastian
> 
> -- 
> Die letzten Worte...
>  des Löwendompteurs: "Die Löwen haben sich beruhigt. Ihr könnt sie jetzt
>                                                             reinlassen."
> ************************************************************************
> PGP Key: 0x1E727CE6 / 9085 48BD 8332 4BFC D80C  A6CF D162 20BB 1E72 7CE6
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message