Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 58490 invoked from network); 6 Aug 2004 13:54:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 6 Aug 2004 13:54:08 -0000 Received: (qmail 64714 invoked by uid 500); 6 Aug 2004 13:52:55 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 64513 invoked by uid 500); 6 Aug 2004 13:52:53 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 64421 invoked by uid 99); 6 Aug 2004 13:52:51 -0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SUBJ_HAS_SPACES X-Spam-Check-By: apache.org Received: from [63.244.250.132] (HELO mustang.mpi.com) (63.244.250.132) by apache.org (qpsmtpd/0.27.1) with ESMTP; Fri, 06 Aug 2004 06:52:50 -0700 Received: from thunderbolt.mpi.com (thunderbolt [63.244.253.70]) by mustang.mpi.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id i76DmiLx005479 for ; Fri, 6 Aug 2004 09:48:44 -0400 (EDT) Received: from US-VS1.corp.mpi.com (us-be2.corp.mpi.com [63.244.252.32]) by thunderbolt.mpi.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i76Dq3Rn029728 for ; Fri, 6 Aug 2004 09:52:37 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Cannot get log4j logs into tomcat logs folder using relative mechanism Date: Fri, 6 Aug 2004 09:51:56 -0400 Message-ID: <9C5166762F311146951505C6790A9CF80229BE26@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Cannot get log4j logs into tomcat logs folder using relative mechanism Thread-Index: AcR7qo9VffpeQp0MSG+ItPbprWb13wACoN6QAACqnMAAATFMcA== From: "Shapira, Yoav" To: "Tomcat Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N H= i, Good, I hope it works. Have a good weekend, Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Allistair Crossley [mailto:Allistair.Crossley@QAS.com] >Sent: Friday, August 06, 2004 9:18 AM >To: Tomcat Users List >Subject: RE: Cannot get log4j logs into tomcat logs folder using relative >mechanism > >Great, that worked, thanks. By the way Yoav, I have added the >LogFactory.shutdown() to the context listeners and will be keeping an= eye >on whether the ThreadDeath problem occurs again. > >I'll update the bug next week with my findings. > >Cheers, Allistair > >> -----Original Message----- >> From: Shapira, Yoav [mailto:Yoav.Shapira@mpi.com] >> Sent: 06 August 2004 14:05 >> To: Tomcat Users List >> Subject: RE: Cannot get log4j logs into tomcat logs folder using >> relative mechanism >> >> >> >> Hi, >> You have to include the variable as ${varName} in your File attribute, >> e.g. ${user.dir}/logs/myLog. See >> http://marc.theaimsgroup.com/?l=3Dlog4j-user&m=3D108609662415067&w=3D= 2. >> >> However, I recommend a more robust approach. Maybe this is because= I >> dislike relying on platform-specific settings like environment >> variables. But anyways, use Ant to do this for you. Have ant fill= in >> the File attribute value when you're deploying your webapp. >> You can do >> this with filter tokens and build.properties files for every >> developer. >> >> Yoav Shapira >> Millennium Research Informatics >> >> >> >-----Original Message----- >> >From: Allistair Crossley [mailto:Allistair.Crossley@QAS.com] >> >Sent: Friday, August 06, 2004 7:43 AM >> >To: tomcat-user@jakarta.apache.org >> >Subject: Cannot get log4j logs into tomcat logs folder using relative >> >mechanism >> > >> >Hi Guys, >> > >> >Our developers use the same log4j configuration file, but >> have separate >> >instances of tomcat on the server. At the moment we have to >> do a search >> and >> >replace for the File attribute to make sure the directory is corre= ct >> per >> >developer instance. >> > >> >At the moment this works for an instance ... >> > >> >log4j.appender.ErrorsA.File=3Dd:/jakarta-tomcat-5.0.25/logs/iq2-sy= s- >> >errors.log >> > >> >I have set my user.dir property with >> > >> >-Duser.dir=3D%CATALINA_HOME% >> > >> >And printing the value in a JSP gives >> > >> >d:\jakarta-tomcat-5.0.25 >> > >> >Yet when trying >> > >> ># trying to go forward into tomcat logs from relative user.dir >> >log4j.appender.ErrorsA.File=3Dlogs/iq2-sys-errors.log >> > >> >give error >> > >> >java.io.FileNotFoundException: logs\iq2-core-actions.log (The syst= em >> cannot >> >find the path specified) >> > >> >Thanks, Allistair >> > >> > >> > >> >------------------------------------------------------- >> >QAS Ltd. >> >Developers of QuickAddress Software >> >www.qas.com >> >Registered in England: No 2582055 >> >Registered in Australia: No 082 851 474 >> >------------------------------------------------------- >> > >> > >> > >> >---------------------------------------------------------------------= >> >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org= >> >For additional commands, e-mail: tomcat-user-help@jakarta.apache.o= rg >> >> >> >> >> This e-mail, including any attachments, is a confidential >> business communication, and may contain information that is >> confidential, proprietary and/or privileged. This e-mail is >> intended only for the individual(s) to whom it is addressed, >> and may not be saved, copied, printed, disclosed or used by >> anyone else. If you are not the(an) intended recipient, >> please immediately delete this e-mail from your computer >> system and notify the sender. Thank you. >> >> >> -------------------------------------------------------------------= -- >> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: tomcat-user-help@jakarta.apache.or= g >> >> > > > >------------------------------------------------------- >QAS Ltd. >Developers of QuickAddress Software >www.qas.com >Registered in England: No 2582055 >Registered in Australia: No 082 851 474 >------------------------------------------------------- > > > >---------------------------------------------------------------------= >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org This e-mail, including any attachments, is a confidential business com= munication, and may contain information that is confidential, propriet= ary and/or privileged. This e-mail is intended only for the individua= l(s) to whom it is addressed, and may not be saved, copied, printed, d= isclosed or used by anyone else. If you are not the(an) intended reci= pient, please immediately delete this e-mail from your computer system= and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org