-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 20 Jan 2006, Jakob Fix wrote:

Date: Fri, 20 Jan 2006 10:51:58 +0100
From: Jakob Fix <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: configuring Cocoon's logkit for console logging only

Hi Giacomo,

thanks for your reply.

On 20/01/06, Giacomo Pati <[EMAIL PROTECTED]> wrote:
From: Jakob Fix <[EMAIL PROTECTED]>
I have trouble configuring logkit as to not log to file at all (the
application will run directly from CD-ROM), but to only log
FATAL_ERRORs to the *console*.  I can't find any hint as to what the
name of the factory to use would be.

Change all ref-id attribute values in the <categories> section of the
logkit.xml file to "console" and you are done ("console" references the
corresponding <stream id="console"> target in the <targets> section
which uses the "stream" factory which prints to System.out).

OK, I can change the ref-id attributes to "console".

However, I do not have any <stream> elements in my <targets> section,
and also there's no stream factory, just these:

<factory type="priority-filter"
 
class="org.apache.avalon.excalibur.logger.factory.PriorityFilterTargetFactory"/>
<factory type="servlet"
 class="org.apache.avalon.excalibur.logger.factory.ServletTargetFactory"/>
<factory type="cocoon" class="org.apache.cocoon.util.log.CocoonTargetFactory"/>
<factory type="lf5"
class="org.apache.avalon.excalibur.logger.factory.LF5TargetFactory"/>

Couldn't find any mentioning of a stream factory etc. on the cocoon
website either.  I'm using 2.1.5.

Uh! 2.1.5, long time ago, don't know whether you can use a more recent logkit.xml. Just try the 2.1.8 one.


Is it just me being daft?

--
cheers,
Jakob.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



- -- 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)

iD8DBQFD0VACLNdJvZjjVZARAusDAKDC3gHOzhMS5elOiO1pTa5Hf4CrHwCguTEe
dr62cV66Xh3gjhXIRwwy88U=
=dwPN
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]