Hi all , I am using the log4j thorugh the properties file and I use the File Appender,everything works fine..but Our production enviroment is UNIX and Development is Windows ,I am having problem specifying the File Appender path, it seems there is no way to specify a relative path?
[debug output: log4j: Setting property [file] to [my/logging/path/minute.log].]
2. A scenario that doesn't work for me.
On the other hand if I run my class after setting it as an environment variable (using the syntax that works for the env I'm on today) it doesn't know about log4j.log.dir:
set log4j.log.dir=/my/logging/path java MyClass
[debug output: log4j: Setting property [file] to [/minute.log].]
3. If you're using tomcat and CATALINA_HOME doesn't work, try catalina.base or catalina.home. This was suggested by an email I found searching in the archive I pointed you to. It looks like the CATALINA_HOME environment variable may used to set a system property catalina.home. I just peeked in one of the tomcat scripts but didn't verify that.
4. If that's not clear or you have questions please be more specific. I don't have time to write a dissertation, just trying to point you in a helpful direction. [ May 05, 2005: Message edited by: Carol Enderlin ]
Joined: Jan 29, 2003
Thanks for the explanation.
Yes it works by editing the JAVA_OPTS variable in catalina.sh.It is recognizing the path.
But i have another problem, as another developer already have some value setup for that variable I am trying to figure out the syntax for adding multiple system properties.