You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Thomas Halbig <th...@infometis.ch> on 2003/08/07 12:45:25 UTC

-no subject-

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: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org