Ok, the recent thread about using log4j as the default
showed that there is a big interest in directly using log4j.

Sylvain raised the concern of performance which can imho
be solved in the wrapper class. The avalon logging uses
a wrapper class around the log4j logger to conform to
the avalon Logger interface. This wrapper can store/cache
the level in an instance variable making the test
calls to isDebugEnabled() etc. as fast as possible.
Although this is an optimization in the nano area which
should neither increase/decrease performance for a 
complete Cocoon request, it should solve the concern.

Now, imho only two questions remain :)

1. What should Cocoon offer to support log4j? So, everyone
out there who wants to use/is using log4j with Cocoon, what
are you missing? Examples could be, a support for configuring
log4j via Cocoon etc.

2. Should we make log4j (with the improved wrapper idea from
above) the default?

WDYT?

Carsten 

Carsten Ziegeler 
Open Source Group, S&N AG
http://www.osoco.net/weblogs/rael/

Reply via email to