logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bender Heri" <HBen...@Ergonomics.ch>
Subject RE: SMTPAppender and time of Day
Date Tue, 11 Oct 2005 13:10:22 GMT
Hi Steve

i dont think it can be done with configuration alone. You have to define two appenders and
assign them self written filters which apply your buisness rules.
IIRC in property file (.properties) its not possible to configure filters. So you either switch
to xml-Configuration or you attach the filters by code.

Heri

> -----Original Message-----
> From: Stephen More [mailto:stephen.more@gmail.com]
> Sent: Tuesday, October 11, 2005 2:56 PM
> To: log4j-user@logging.apache.org
> Subject: SMTPAppender and time of Day
> 
> 
> Is there an easy way to configure log4j.properties so that 
> SMTPAppender will
> email 1 address during business hours, then email a different 
> email ( pager
> ) during off business hours ?
> 
> 
> -Thanks
> Steve More
> 

---------------------------------------------------------------------
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