-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 20 Jan 2006, Jakob Fix wrote:
Googling for "stream target cocoon", at
http://www.planetcocoon.com/tags/210 I found "Re: svn commit: r159493
- cocoon/trunk/src/webapp/WEB-INF/logkit.xconf"
which contained the line
+ <factory type="stream"
class="org.apache.avalon.excalibur.logger.factory.StreamTargetFactory"/>
which I then used in my <factories> section.
Then I cut down the <targets> section to this:
<targets>
<stream id="console"/>
</targets>
Again, I deduced from looking at the factory elements' type attribute
that they probably woud be the namesake for the target element name. I
gave it the id attribute value "console" because you alluded to it in
your previous post. And then I replaced, as you indicated, all id-ref
values with "console". Also, as I mentioned, the error level is
pushed up to FATAL_ERROR.
Thanks for the pointer to the stream factory though.
Your factory setting is ok. In the <targets> you should have:
<stream id="console">
<stream>System.out</stream>
<format type="extended">%5.5{priority} %5.5{time} [%8.8{category}]
(%{context}): %{message}\n</format>
</stream>
And in the <categories>
<category log-level="FATAL_ERROR" name="">
<log-target id-ref="console"/>
</category>
HTH
- --
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFD0VEhLNdJvZjjVZARAvDXAKC8PKAOOuYF4PoUI2ZQOdhf5ljYiQCfbiz7
AAY+k2bQVCES8sIHPpzTGfU=
=NeTA
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]