You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Sohana Chowdhury <ch...@mail.nih.gov> on 2007/06/01 21:35:17 UTC

Redirect log file location

Hi,
Do you have any idea of how to redirect the location of the log file?

My log4j.properties file has
log4j.appender.A2.file=ABCDlogfile.log

When I run the program, it creates the log file in a folder I am not
expecting it to be. I want to be in the tomcat/logs directory. Of course I
do not want to hard code the absolute path for inconvenience to the users.
The web app runs on different platform/servers.
 
Any idea on how to redirect the log file location?

Thanks
Sohana