This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Web Start and JDK Logger

 
Balachandran Paranjothimani
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Cristian Negresco
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic