Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 44293 invoked from network); 7 Nov 2006 16:44:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Nov 2006 16:44:23 -0000 Received: (qmail 34107 invoked by uid 500); 7 Nov 2006 16:44:31 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 34080 invoked by uid 500); 7 Nov 2006 16:44:30 -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 34069 invoked by uid 99); 7 Nov 2006 16:44:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 08:44:30 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of yinglcs@gmail.com designates 66.249.82.232 as permitted sender) Received: from [66.249.82.232] (HELO wx-out-0506.google.com) (66.249.82.232) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 08:44:17 -0800 Received: by wx-out-0506.google.com with SMTP id t12so1378785wxc for ; Tue, 07 Nov 2006 08:43:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=HxUarkxCSCr0G38wzaC3CkNfIZ5Icq0YoF7kp7GbI5+BMiYS8gh1zg25VAZyc9De0KdtIZjQet0kRwK9rSJSEJDKiK1nS8OuwjzAdc2aYwr7bSaxX6U/MdOM8D2MLdBknmgNMOtaCAPlKIfyXJRepdDKSTuYlwpyKsrE0v1xQ/M= Received: by 10.70.53.7 with SMTP id b7mr7472787wxa.1162917836636; Tue, 07 Nov 2006 08:43:56 -0800 (PST) Received: by 10.70.71.10 with HTTP; Tue, 7 Nov 2006 08:43:55 -0800 (PST) Message-ID: <568e62a40611070843v5a75ed35u43aad2e35ee2d695@mail.gmail.com> Date: Tue, 7 Nov 2006 10:43:55 -0600 From: "ying lcs" To: log4j-user@logging.apache.org Subject: Using log4j in Tomcat MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org I have the following log4j property file, and I am using log4j in my tomcat. Can you please tell me how can I specify the location of the log file so that it is in the inside the webapp directory of the tomcat that I deploy? I don't know the location of the tomcat, so I can't put absolute path. log4j.appender.DLACCESS=org.apache.log4j.FileAppender # # how can I specify the location of the log file so that it is in the inside the webapp directory of the tomcat that I deploy? # log4j.appender.DLACCESS.File=access.log --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org