Hi,
Can any one please help me how to get environment variables from
tomcat's server.xml to apache logging file?
For Ex:
I have declared the environment name in tomcat's server.xml file like below:
<GlobalNamingResources>
<Environment name="logFiles" value="C:\Data\"
type="java.lang.Integer" override="false"/>
</GlobalNamingResources>
Now I want to access the variable logFiles from log4j file..
My Log4j File as below
<param name="append" value="true" />
<param name="File" value="${logFiles}/log/Project.log" /> ====> its not working...
I dont want to use catalina.home and java_opts setup.. I want to access the custom variables.