tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Cannot get log4j logs into tomcat logs folder using relative mechanism
Date Fri, 06 Aug 2004 13:05:17 GMT

You have to include the variable as ${varName} in your File attribute,
e.g. ${user.dir}/logs/myLog.  See

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 files for every developer.

Yoav Shapira
Millennium Research Informatics

>-----Original Message-----
>From: Allistair Crossley []
>Sent: Friday, August 06, 2004 7:43 AM
>Subject: Cannot get log4j logs into tomcat logs folder using relative
>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
>replace for the File attribute to make sure the directory is correct
>developer instance.
>At the moment this works for an instance ...
>I have set my user.dir property with
>And printing the value in a JSP gives
>Yet when trying
># trying to go forward into tomcat logs from relative user.dir
>give error
> logs\iq2-core-actions.log (The system
>find the path specified)
>Thanks, Allistair
>QAS Ltd.
>Developers of QuickAddress Software
><a href=""></a>
>Registered in England: No 2582055
>Registered in Australia: No 082 851 474
>To unsubscribe, e-mail:
>For additional commands, e-mail:

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:
For additional commands, e-mail:

View raw message