I have a log4j properties file. on application start up i need to set value for one of the property. is it possible? because i know the value for the property on application start up only.
log4j.properties
----------------
Environment = ${env}
Thanks!
then in log file you can call that variable as
Edit:
Tomcat: If application is running in Tomcat you can define environment in Catalina.bat.
Open the “Catalina.bat” file placed in the “bin” directory.
Then Restart your server by Catalina.bat.