Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 16198 invoked from network); 3 Nov 2010 15:55:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Nov 2010 15:55:34 -0000 Received: (qmail 15063 invoked by uid 500); 3 Nov 2010 15:56:05 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 14942 invoked by uid 500); 3 Nov 2010 15:56:03 -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 14929 invoked by uid 99); 3 Nov 2010 15:56:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 15:56:02 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [194.106.220.35] (HELO mail91.messagelabs.com) (194.106.220.35) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 15:55:53 +0000 X-VirusChecked: Checked X-Env-Sender: Kenneth.Lam@barclayscapital.com X-Msg-Ref: server-14.tower-91.messagelabs.com!1288799730!3867491!1 X-StarScan-Version: 6.2.9; banners=-,-,- X-Originating-IP: [146.127.253.26] Received: (qmail 27642 invoked from network); 3 Nov 2010 15:55:31 -0000 Received: from unknown (HELO mx25.barcap.com) (146.127.253.26) by server-14.tower-91.messagelabs.com with DHE-RSA-AES256-SHA encrypted SMTP; 3 Nov 2010 15:55:31 -0000 Received: from nykpsmeg0000001.INTRANET.BARCAPINT.COM (nykpsmeg0000001.nyk.mess.barcap.com [10.54.16.1]) by mx25.barcap.com (Postfix) with ESMTP id 702E8110052 for ; Wed, 3 Nov 2010 11:55:30 -0400 (EDT) Received: from nykpsmmgch08.INTRANET.BARCAPINT.COM (Not Verified[10.58.21.31]) by nykpsmeg0000001.INTRANET.BARCAPINT.COM with Barclays Capital Filter ESMTP id ; Wed, 03 Nov 2010 11:55:30 -0400 Received: from NYKPCMMGMB07.INTRANET.BARCAPINT.COM ([169.254.1.124]) by nykpsmmgch08.INTRANET.BARCAPINT.COM ([10.58.21.31]) with mapi; Wed, 3 Nov 2010 11:55:29 -0400 From: To: Date: Wed, 3 Nov 2010 11:55:29 -0400 Subject: Extra RollingFileAppender with NLOG4j Thread-Topic: Extra RollingFileAppender with NLOG4j Thread-Index: Act7b4n1ocPUZP5nTvezY9/oi0e4gQ== Message-ID: <5319F993D4AE1B458C2190F6CC2C2DD80119E83A00@NYKPCMMGMB07.INTRANET.BARCAPINT.COM> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-GB Content-Type: multipart/alternative; boundary="_000_5319F993D4AE1B458C2190F6CC2C2DD80119E83A00NYKPCMMGMB07I_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_5319F993D4AE1B458C2190F6CC2C2DD80119E83A00NYKPCMMGMB07I_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I'm trying to get the RollingFileAppender from the extra log4j companion = file working but I'm having problems configuring the appender. I am usin= g this with the most current version of NLOG4J The following is my config file: =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 At startup, I get the following errors: log4j:ERROR Element type "rollingPolicy" must be declared. log4j:ERROR The content of element type "appender" must match "(errorHand= ler?,param*,layout?,filter*,appender-ref*)". If I attempt to write to the appender, I then get: log4j:WARN Please set a rolling policy for the RollingFileAppender named = 'logFileAppender' log4j:ERROR No output stream or file set for the appender named [logFileA= ppender]. I think the issue is that the rollingPolicy element isn't defined in log4= j.dtd but I'm not sure how to proceed with this. Is NLOG4J not compatibl= e with the companion jar? Thanks. _______________________________________________ This e-mail may contain information that is confidential, privileged or o= therwise protected from disclosure. If you are not an intended recipient = of this e-mail, do not duplicate or redistribute it by any means. Please = delete it and any attachments and notify the sender that you have receive= d it in error. Unless specifically indicated, this e-mail is not an offer= =20to buy or sell or a solicitation to buy or sell any securities, invest= ment products or other financial product or service, an official confirma= tion of any transaction, or an official statement of Barclays. Any views = or opinions presented are solely those of the author and do not necessari= ly represent those of Barclays. This e-mail is subject to terms available= =20at the following link: www.barcap.com/emaildisclaimer. By messaging wi= th Barclays you consent to the foregoing. Barclays Capital is the invest= ment banking division of Barclays Bank PLC, a company registered in Engla= nd (number 1026167) with its registered office at 1 Churchill Place, Lond= on, E14 5HP. This email may relate to or be sent from other members of t= he Barclays Group. _______________________________________________ --_000_5319F993D4AE1B458C2190F6CC2C2DD80119E83A00NYKPCMMGMB07I_--