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:[EMAIL PROTECTED] > Sent: Tuesday, October 11, 2005 2:56 PM > To: [email protected] > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
