Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 63202 invoked from network); 9 Sep 2008 15:01:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Sep 2008 15:01:48 -0000 Received: (qmail 7535 invoked by uid 500); 9 Sep 2008 15:01:43 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 7514 invoked by uid 500); 9 Sep 2008 15:01:43 -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 7503 invoked by uid 99); 9 Sep 2008 15:01:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2008 08:01:42 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.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, 09 Sep 2008 15:00:45 +0000 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="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [SPAM (Bayesain Analysis)] - Logger object and change filename - Bayesian Filter detected spam Date: Tue, 9 Sep 2008 17:00:51 +0200 Message-ID: <3FE38194C8A3334A959B64B7D9A1E27B6E3320@plejaden.seychelles.ergo> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SPAM (Bayesain Analysis)] - Logger object and change filename - Bayesian Filter detected spam thread-index: AckRyP9IZWNr3bv8QVSHtmdmusURHQAwyN2w From: "Bender Heri" To: "Log4J Users List" X-Virus-Checked: Checked by ClamAV on apache.org Loggers do not have file names attached. Probably you mean a FileAppender. Each configured Appender is instantiated as singleton, even if it is attached to more than one Logger. Loggers are identified by a arbitrary String, commonly the FQCN. Therefore you cant clone a Logger which has the same name as the original. Explain more about your needs. Why do you have to clone it? Heri > -----Original Message----- > From: Reza Razavipour [mailto:reza.razavipour@gmail.com]=20 > Sent: Monday, September 08, 2008 5:38 PM > To: Log4J Users List > Subject: [SPAM (Bayesain Analysis)] - Logger object and=20 > change filename - Bayesian Filter detected spam >=20 > All, >=20 > I have a Logger object and I need to create a "clone" of it=20 > and change its filename to a different name. How does one do that? > The idea here is that I have initialized a Logger instance=20 > from log-4j.xml file. Now I need to create a new one, off of=20 > it or clone and change the filename. Every attribute of the=20 > new Logger instance should be whatever is in the file, only=20 > filename is diifferent. >=20 > Thanks in advance. > Reza >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > For additional commands, e-mail: log4j-user-help@logging.apache.org >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org