Return-Path: Delivered-To: apmail-jakarta-log4j-user-archive@apache.org Received: (qmail 12287 invoked from network); 11 Aug 2003 10:44:24 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 11 Aug 2003 10:44:24 -0000 Received: (qmail 1595 invoked by uid 97); 11 Aug 2003 10:47:03 -0000 Delivered-To: qmlist-jakarta-archive-log4j-user@nagoya.betaversion.org Received: (qmail 1588 invoked from network); 11 Aug 2003 10:47:03 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 11 Aug 2003 10:47:03 -0000 Received: (qmail 11365 invoked by uid 500); 11 Aug 2003 10:44:09 -0000 Mailing-List: contact log4j-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@jakarta.apache.org Received: (qmail 11351 invoked from network); 11 Aug 2003 10:44:08 -0000 Received: from mta01ps.bigpond.com (144.135.25.155) by daedalus.apache.org with SMTP; 11 Aug 2003 10:44:08 -0000 Received: from minbari ([144.135.25.75]) by mta01ps.email.bigpond.com (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with SMTP id <0HJG0082SB2KYY@mta01ps.email.bigpond.com> for log4j-user@jakarta.apache.org; Mon, 11 Aug 2003 20:42:20 +1000 (EST) Received: from cpe-144-136-132-116.qld.bigpond.net.au ([144.136.132.116]) by psmam03bpa.bigpond.com(MAM REL_3_3_2c 89/3444869); Mon, 11 Aug 2003 20:42:20 +0000 Date: Mon, 11 Aug 2003 20:42:08 +1000 From: Adrian Beech Subject: Creating log files relative to the web applications root directory? To: 'Log4J Users List' Reply-to: a.beech@bigpond.net.au Message-id: <004e01c35ff5$39f6fce0$0200000a@minbari> Organization: Polarmation MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Outlook, Build 10.0.4510 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N G'day, Is it possible to specify a log filename in the XML log4j properties file so that it is relative to the web applications root directory? I have the following in a log4j.xml file located in web-inf/classes with the log4j jar in the web-inf/lib directory. Logging seems to be fine except the "rascal.log" file is being created in the Tomcat application directory under C:\Program Files\ and not in the C:\Tomcat 4.1\webapps\... Directory tree. I'd prefer to have the log files in something like ../webapps//logs/. Is this possible? BTW, took a while to find the rascal.log file!!! --[log4j.xml]--------------------------------------------------------- ?xml version="1.0" encoding="UTF-8" ?> --[End Of File]------------------------------------------------------- I'm using Tomcat 4.1.24 on a Win XP and 2k box for development and Tomcat 4.1.24 on a Unix box as the production platform. AB --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: log4j-user-help@jakarta.apache.org