We really need to improve logging in Castor, currently logging is not
consistent, there is still System.out.println calls (not executed,
but...).

I was thinking of adding an interface to let the user choose the
logging package (log4j or jdk1.4 logging) without adding new dependency
to the code. Jakarta Commons logging is interesting but this is yet
another package to add...

Szabo Peter wrote:
Hello,

I wrote a log4j adapter for castor xml (the one on castor's website is
outdated due to some development in log4j and castor itself) (un)marshaller to have those
"detailed information about mapping desisions" mentioned in the
documentation and I set the debug to true.

Nothing appeared from my adapter, but there came exactly one line from the
Marshaller (and still none from Unmarshaller):
"Marshalling [package.className]"

After some investigation in castor's source I couldn't find any lines of
code dealing the _logWriter where my adapter is set to. Even that one line
is a System.out.println call. (Of course the adapter works, if I change that
sysout to an adapter call, then I get the line printed with the set
prefix,...)

I wonder why?

Best regards,
Peter

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




--
Mickael Guessant

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

Reply via email to