logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Davidson" <tim.david...@greenhatconsulting.com>
Subject RE: Trying to put logs under ${CATALINA_HOME}/logs/
Date Wed, 13 Aug 2003 16:11:36 GMT
yeah, 

log4j.appender.myAppender.File=%CATALINA_HOME%/logs/my_log.txt

doesnt work either!

-----Original Message-----
From: Shapira, Yoav [mailto:Yoav.Shapira@mpi.com]
Sent: Wednesday, August 13, 2003 4:55 PM
To: Log4J Users List
Subject: RE: Trying to put logs under ${CATALINA_HOME}/logs/



Howdy,

>log4j.appender.myAppender.File=c:/jakarta-tomcat-4.1.24/logs/my_log.txt
>
>but this doesn't:
>
>log4j.appender.myAppender.File=${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


Mime
View raw message