• Post Reply Bookmark Topic Watch Topic
  • New Topic

applet won't use correct logging.properties

 
Jon Wynett
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an application, designed to run stand-alone or as an applet, that uses java.util.logging.

When the logger starts, I call LogManager.readConfiguration(InputStream is) to load my properties file.

This works fine when the app runs standalone however when run as an applet it still defaults to the JRE version of the properties file.

My props file is in the jar. I have confirmed that the InputStream can read the properties correctly and I can print it to the system.out if necessary. But somehow it still gets overriden by the default props file.

Anyone know why?

Jon
 
Jon Wynett
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found some more information. It is using my logging.properties after all.

What it won't use is my custom formatter class. My guess at this point is that it is some sort of class loader issue that the logging classes aren't able to find my formatter when running in the applet.

Jon
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!