File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JNLP and Web Start and the fly likes Java Web Start and JDK Logger Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Java Web Start and JDK Logger " Watch "Java Web Start and JDK Logger " New topic
Author

Java Web Start and JDK Logger

Balachandran Paranjothimani
Ranch Hand

Joined: Jun 18, 2005
Posts: 43
The JDK logger uses the logging.properties file in the JRE lib directory. However I would like to use my own logging.properties file as part of the application that uses Java Web Start. This config file will be part of the application jar file.

The usual way to specify the logging properties file is by using the -D parameter

-Djava.util.logging.config.file=logging.properties

How do I specify my own logging.properties file for Java Web Start? TIA.


Moderator : <a href="http://groups.yahoo.com/group/OOAD_UML/" target="_blank" rel="nofollow">http://groups.yahoo.com/group/OOAD_UML/</a><br />Home : <a href="http://www.zepho.com" target="_blank" rel="nofollow">http://www.zepho.com</a>
Cristian Negresco
Ranch Hand

Joined: Sep 15, 2001
Posts: 182
Hello,

Try to add the "java.util.logging.config.file" system property which points to your own logging configuration file. Your configuration file could be packed inside some of the downloaded jars.

Regards,
Cristian
Cristian Negresco
Ranch Hand

Joined: Sep 15, 2001
Posts: 182
Hi again,

The system properties are added as below:

<resources>
[....]
<property name="java.util.logging.config.file" value="/com/company/bla/bla/log.properties">
</property>

[....]
</resources>

Cristian
 
 
subject: Java Web Start and JDK Logger