Is there a way to set the location of the properties file withough specifying a JVM param such as -Djava.util.logging.config.file=log.properties ?
+2
A:
Yes. Per the documentation, you can configure the LogManager via the Preferences API.
InputStream inputStream = new FileInputStream("logging.properties");
LogManager.getLogManager().readConfiguration(inputStream);
Jonathan Feinberg
2009-12-07 15:25:19