Return-Path: Delivered-To: apmail-jakarta-log4j-user-archive@apache.org Received: (qmail 20329 invoked from network); 13 Aug 2003 16:21:37 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 13 Aug 2003 16:21:37 -0000 Received: (qmail 6395 invoked by uid 97); 13 Aug 2003 16:24:19 -0000 Delivered-To: qmlist-jakarta-archive-log4j-user@nagoya.betaversion.org Received: (qmail 6388 invoked from network); 13 Aug 2003 16:24:19 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 13 Aug 2003 16:24:19 -0000 Received: (qmail 19550 invoked by uid 500); 13 Aug 2003 16:21:27 -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 19536 invoked from network); 13 Aug 2003 16:21:26 -0000 Received: from office.greenhatconsulting.com (HELO ghc-w2k1.ad.greenhatconsulting.com) (217.205.100.146) by daedalus.apache.org with SMTP; 13 Aug 2003 16:21:26 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message Subject: RE: Trying to put logs under ${CATALINA_HOME}/logs/ MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Wed, 13 Aug 2003 17:21:27 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Trying to put logs under ${CATALINA_HOME}/logs/ Thread-Index: AcNhtjRpCaIunuduSpOzWGO1cZrkWgAAOb9w From: "Tim Davidson" To: "Log4J Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N OK this is working! = log4j.appender.myAppender.File=3D${catalina.base}/logs/my_front-end_log.t= xt Thanks for your help. -----Original Message----- From: Andy McBride [mailto:andy.mcbride@pcmsgroup.com] Sent: Wednesday, August 13, 2003 5:12 PM To: 'Log4J Users List' Subject: RE: Trying to put logs under ${CATALINA_HOME}/logs/ Hi, Specifying "${catalina.base}" or "${catalina.home}" should work if you started tomcat=20 using bin\startup.bat file as this script converts the environment variable CATALINA_HOME=20 into a -D system property on the java command line. =20 Log4J tries to resolve properties surrounded by "${" and "}" by calling System.getProperty=20 on the value. This will not resolve environment variables, only java properties specified using -D See the javadoc on org.apache.log4j.helpers.OptionConvertor substVars method for more details If you start tomcat using the supplied windows shortcut which starts using bin\bootstrap.jar no system=20 Properties get set by default. Hope this helps Andy =20 -----Original Message----- From: Shapira, Yoav [mailto:Yoav.Shapira@mpi.com]=20 Sent: 13 August 2003 16:55 To: Log4J Users List Subject: RE: Trying to put logs under ${CATALINA_HOME}/logs/ Howdy, >log4j.appender.myAppender.File=3Dc:/jakarta-tomcat-4.1.24/logs/my_log.tx= t > >but this doesn't: > >log4j.appender.myAppender.File=3D${CATALINA_HOME}/logs/my_log.txt Did you try $CATALINA_HOME (on unix) or for your case %CATALINA_HOME% since you're on NT? The syntax with the curly braces is for Ant. You're trying to access environment variables. >it would appear that it completely ignores the "${CATALINA_HOME}" variable, >which I have checked is defined. can anyone suggest a reason for this? I >tried it with "${catalina.base}" which i saw somewhere but that doesnt work >either. And it doesnt like ${file.separator} either. I'm running winNT. Same thing for file.separator, although I don't think that's always defined as it is in java. Yoav Shapira 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: log4j-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: log4j-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: log4j-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: log4j-user-help@jakarta.apache.org