This one time, at band camp, Werner Guttmann said:

WG>with the latest release 0.9.5.3 (a first release candidate being available), at 
least for the Castor JDO part of things, a switch has been made to use 
WG>Jakarta's Commons Logging and Log4J. You might want to consider checking this out 
as it greatly simplifies logging in general and tailoring logging to your 
WG>needs.
WG>
WG>Werner
WG>
WG>On Tue, 17 Feb 2004 08:43:48 +0100, Marco Herrn wrote:
WG>
WG>>
WG>>Hi,
WG>>
WG>>I am trying to use the log4j Adapter as described in
WG>>http://www.mail-archive.com/[EMAIL PROTECTED]/msg02710.html.
WG>>
WG>>Since the article is from 2001 it uses Category instead of Logger from
WG>>log4j. That's ok. But there is also class used called Logger in the
WG>>following line:
WG>>
WG>>    Logger logger = new Logger(log4jWriter).setPrefix("castor");
WG>>
WG>>What is this logger? It is not in log4j (at least not under that name) and
WG>>not in castor. log4Writer is the Adapter class which is a subclass of
WG>>StringWriter. Since this Logger is used as the PrintWriter for
WG>>jdo.setLogWriter() it must be some subclass of PrintWriter. Or am I wrong? 
WG>>
WG>>So what do I have to do to use this adapter class?

Marco,

Werner is correct that Castor JDO now uses Log4J via Jakarta Commons
Logging. In order to achieve this, all logging statements with JDO
that used the old org.exolab.castor.util.Logger (the one referenced
above) will no longer print out anything because all of the calls to
org.exolab.castor.util.Logger have been replaced with calls to the
Jakarta Commons Logging API.

There is one outstanding issue with Log4J logging currently which concerns
the separation of the logging statements from your application vs. the
logging statements from a library (like Castor). This is not a problem
specific to Castor, however. It is a problem at a much lower level than
Castor or Log4J and it is outlined very well by Ceki G�lc� here:

    http://www.qos.ch/logging/sc.html

Ceki does a very good job of explaining this long outstanding issue
surrounding containers and ClassLoaders.

Bruce
-- 
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

The Castor Project 
http://www.castor.org/

Apache Geronimo 
http://incubator.apache.org/projects/geronimo.html

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to