Howdy,
You could use MDC.

And you should use the log4j-user list for this and other user
questions.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Thomas Halbig [mailto:[EMAIL PROTECTED]
>Sent: Thursday, August 07, 2003 10:26 AM
>To: [EMAIL PROTECTED]
>Subject: Adding additional data to log
>
>
>Hello,
>
>im trying to log a lot customize data like user data, different dates
>a.s.o. .
>Threrefore I tried to pass my own class instead of a string to the
debug
>method!
>
>
>
>log.debug( new eALogMessage("Hello Tom", myDate, user));
>
>
>
>In my SqlHandler, I tried to get this object back :
>
>
>
>public String getStatement(LoggingEvent event) throws Exception {
>  if( event.getMessage() instanceof eALogMessage){
>     eALogMessage eAMsg = (eALogMessage)event.getMessage();
>...
>
>But here, the message object has been rendered to a string.
>
>Is it genereally possible pass customize data, when yes how?
>
>cheers,
>tom
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to