Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 29411 invoked from network); 29 Oct 2008 08:36:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Oct 2008 08:36:54 -0000 Received: (qmail 61022 invoked by uid 500); 29 Oct 2008 08:36:58 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 60994 invoked by uid 500); 29 Oct 2008 08:36:58 -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 60983 invoked by uid 99); 29 Oct 2008 08:36:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Oct 2008 01:36:58 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.227.126.187] (HELO moutng.kundenserver.de) (212.227.126.187) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Oct 2008 08:35:43 +0000 Received: from vhserv22.complan.lokal ([217.6.246.202]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis) id 0ML2xA-1Kv6XN2IO1-00043X; Wed, 29 Oct 2008 09:36:21 +0100 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4325 Importance: normal Priority: normal Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: AW: Problem with FileAppender Date: Wed, 29 Oct 2008 09:35:50 +0100 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem with FileAppender Thread-Index: Ack5CdEZxzPhUYrDQ4Cc23oP+EYWiQAFpUmQACAPigA= References: From: "Wagner, Stefan" To: "Log4J Users List" X-CT-RefID: str=0001.0A0B0207.49082080.01BF,ss=1,fgs=0 X-Provags-ID: V01U2FsdGVkX1/OlGocFCyUfsWjHck0+Eu8aKzzJcgpHP1JN26 IcV2Uw6quuoYsRvHTb/NJmXSuszH5ogNbWQGlcYJIMxuMFSikl 0IOJ7/XvOyL1iZTYO//Iw== X-Virus-Checked: Checked by ClamAV on apache.org Hi, sure I use the RollingFileAppender, and on our other Servers the = Mechanism works great with the same application. The log4j.properties = file is evaluated, when I change the location the file is in the new = destination.=20 Stefan _____________________________________________________________________ Sitz der Gesellschaft: Viernheim Gesch=E4ftsf=FChrer: J=FCrgen Gerbig, Werner Oestreicher Amtsgericht: Darmstadt, Registerabteilung: Lampertheim, HRB 61943, = USt-IdNr.: DE148419070 Diese Email enth=E4lt vertrauliche und/oder rechtlich gesch=FCtzte = Informationen. Wenn Sie=20 nicht der richtige Adressat sind oder diese E-Mail irrt=FCmlich erhalten = haben, informieren=20 Sie bitte sofort den Absender und vernichten diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist = nicht gestattet. =20 This message is confidential and may contain privileged information. If = you are not the above named addressee or authorized to receive this message on behalf of = the addressee, please advise the sender immediately and delete this message. Any = unauthorized copying, disclosure or distribution of the information in this e-mail is strictly = forbidden.=20 Versand am 29.10.2008 09:36 von Wagner, Stefan -----Urspr=FCngliche Nachricht----- Von: Bruno Melloni [mailto:Bruno.Melloni@wnco.com]=20 Gesendet: Dienstag, 28. Oktober 2008 18:14 An: Log4J Users List Betreff: RE: Problem with FileAppender >From your comments I think that you meant to use the RollingFileAppender and used the FileAppender instead. The RollingFileAppender supports multiple files, with maximum file size and maximum number of backups. bruno=20 -----Original Message----- From: Wagner, Stefan [mailto:Wagner@complan-und-service.de]=20 Sent: Tuesday, October 28, 2008 9:31 AM To: log4j-user@logging.apache.org Subject: Problem with FileAppender Hey Folk, =20 we use log4j in many JSF projects, great framework. But on one system the FileAppender works wrong in our system... =20 Here is my test configuration: log4j.rootLogger=3Dwarn, R log4j.appender.R=3Dorg.apache.log4j.RollingFileAppender log4j.appender.R.File=3D./logs/example.log log4j.appender.R.MaxFileSize=3D10KB # sure, normally that's s**** # Keep one backup file log4j.appender.R.MaxBackupIndex=3D10 log4j.appender.R.layout=3Dorg.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=3D%p %t %c - %m%n =20 I tried everything, I just get one growing file (example.log), no example.1, example.2 etc... Also the file logs infos, although I changed it to warn level But the information about the file location was used, even when I changed it. (log4j.appender.R.File) Is this a knewn phenomenon? Or could this be a problem of my system? =20 Thanks a lot Stefan =20 =20 _____________________________________________________________________ Sitz der Gesellschaft: Viernheim Geschaftsfuhrer: Jurgen Gerbig, Werner Oestreicher Amtsgericht: Darmstadt, Registerabteilung: Lampertheim, HRB 61943, USt-IdNr.: DE148419070 Diese Email enthalt vertrauliche und/oder rechtlich geschutzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtumlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. =20 This message is confidential and may contain privileged information. If you are not the above named addressee or authorized to receive this message on behalf of the addressee, please advise the sender immediately and delete this message. Any unauthorized copying, disclosure or distribution of the information in this e-mail is strictly forbidden.=20 Versand am 28.10.2008 15:31 von Wagner, Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org