This one time, at band camp, Stein M. Eliassen said:
SME>Alexey A. Efimov wrote:
SME>> I think using this facades is not good - it very-very universal. And it
SME>> may slow down your application.
SME>> Enabling logging for Castor and simple implementing of toString method
SME>> will better.
SME>>
SME>
SME>The Jakarta Commons Lang have some toString-helpers:
SME>http://jakarta.apache.org/commons/lang.html
This is exactly what I'm currently implementing in Castor JDO. I should
probably have the first cut of the logging conversion checked in sometime
this week.
In the meantime, if you need to log objects within any Castor
classes, you can edit those classes in your environment by using the
org.exolab.castor.util.Logger and use it like so:
1) import it:
import org.exolab.castor.util.Logger;
2) declare and instantiate it:
private static Logger _logger =
new Logger( System.out ).setPrefix( "place_your_own_prefix_here" );
3) use it:
if ( _logger ! null )
_logger.println( "Any message you want printed" );
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