Currently i am using slf4j for my application logging which is a tomcat webapp.
I have placed my logging.properties file in tomcat/conf/logging.properties and it is working fine.
I am trying to modify the path of this logging.properties to another location outside tomcat. What change needs to be done in my web application so that tomcat picks the logging configuration from that location.
I have tried setting it to classpath but of no use.
System.setProperty("java.util.logging.config.file", "C://temp//logging.properties");
According to the docs, this ...
... is the correct way of pointing JUL to a specific configuration file.
So, if this ...
... is not causing JUL to use
C://temp//logging.properties
then it's likely that the logging sub system has already initialised itself before you set that system property.The most foolproof way of setting that system property is to run the JVM with a -D argument ...