logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stroboskop <gnubeu...@web.de>
Subject RE: How to handle log4j's internal exceptions
Date Tue, 12 Jun 2007 17:54:32 GMT

I don't think, that's what i wanted to know.
I didn't want to set the log level to ERROR, i wanted to set an
ErrorHandler.

So i was more thinking along the line of:

log4j.appender.File.errorHandler=com.my.very.own.ErrorHandler

When i set it programatically, it works fine. This of course doesn't.




Kamal Ahmed-3 wrote:
> 
> As for #1, in log4j.properties
> 
> Example:
> 
> log4j.logger.com.handler.DefaultMessageHandler=ERROR
> 
> 
> for # 2: Ask Ceki Gülcü
> 
> 
> 
> 
> -----Original Message-----
> From: Stroboskop [mailto:gnubeutel@web.de] 
> Sent: Tuesday, June 12, 2007 9:36 AM
> To: log4j-user@logging.apache.org
> Subject: RE: How to handle log4j's internal exceptions
> 
> 
> ErrorHandler! That's it! Thanks a lot.
> 
> But two more questions arise:
>  - how do i set the error handler using the log4j.properties config? I
> only
> found xml config examples.
>  - why is the ErrorHandler deprecated in log4j 1.3 (and with no substitute
> mechanism at that)?
> 
> -- 
> View this message in context:
> http://www.nabble.com/How-to-handle-log4j%27s-internal-exceptions-tf3902661.html#a11078880
> Sent from the Log4j - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-handle-log4j%27s-internal-exceptions-tf3902661.html#a11083714
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message