From log4j-user-return-16540-apmail-logging-log4j-user-archive=logging.apache.org@logging.apache.org Tue Oct 11 13:09:14 2005 Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 1901 invoked from network); 11 Oct 2005 13:09:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Oct 2005 13:09:14 -0000 Received: (qmail 2809 invoked by uid 500); 11 Oct 2005 13:09:11 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 2782 invoked by uid 500); 11 Oct 2005 13:09:10 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 2771 invoked by uid 99); 11 Oct 2005 13:09:10 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2005 06:09:10 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [195.112.81.7] (HELO mail.ergonomics.ch) (195.112.81.7) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2005 06:09:13 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: SMTPAppender and time of Day Date: Tue, 11 Oct 2005 15:10:22 +0200 Message-ID: <3FE38194C8A3334A959B64B7D9A1E27B353B83@plejaden.seychelles.ergo> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: SMTPAppender and time of Day Thread-Index: AcXOY3Z35Lynx7hlSKGymi33rWOXZQAASaJw From: "Bender Heri" To: "Log4J Users List" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 >=20 >=20 > Is there an easy way to configure log4j.properties so that=20 > SMTPAppender will > email 1 address during business hours, then email a different=20 > email ( pager > ) during off business hours ? >=20 >=20 > -Thanks > Steve More >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org