> -----Ursprungliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Auftrag
> von Carsten Ziegeler
> Gesendet: Donnerstag, 27. Mai 2004 15:25
> An: [EMAIL PROTECTED]
> Betreff: RE: [RT] Logging in Cocoon
>
>
> Marco Rolappe wrote:
> >
> > why depend explicitly on log4j instead of using
> > commons-logging? AFAIK when log4j is available
> > commons-logging automatically uses it before falling back to
> > JDK logger etc.
> >
> Currently - as we are using Avalon for our components - we use
> an avalon logger which is not directly logging but uses a
> logging subsystem. This subsystem can be logkit, log4j etc.
> I think commons-logging is possible as well.
> I honestly don't know if it's better to use commons-logging
> or directly use log4j.

the only problem I have with directly using log4j is being tied to it. if
the code starts to use log4j specific features you'll be no more (easily)
able to move to another logger implementation. and the issues with
commons-logging (classpath, etc.) will probably also be true for log4j.

>
> > and what do you mean by configuring log4j from within cocoon?
> > isn't it easy enough to put the log4j configuration file to
> > /WEB-INF/classes?
> >
> Yepp, but we have to provide this configuration and perhaps we
> have to think about possible configuration conflicts. For example
> what happens if a third party project comes with a log4j
> conf as well. I think log4j handles this automatically but I'm
> not sure.

maybe that's the core issue: providing the ability to configure it; which
logging implementation, the implementation's config, generic logger
definitions ala logkit.xconf.

Reply via email to