File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes java.util.logging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "java.util.logging" Watch "java.util.logging" New topic


Tom Henricksen
Ranch Hand

Joined: Mar 23, 2004
Posts: 136

We have web applications that use java.util.logging. Is there a way to change the logging level per application? I realize I can change the logging VM leve wide by changing the JRE\lib\ Is there a way we can just add a file like log4j. When we deploy we don't want to restart the JVM, just the application. Then we can change the file and restart the application instead of the whole server.
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

Afraid not. It looks like the idea "logging centralized at the JVM level" is one of the design features of java.util.logging.

So yeah, using log4j is a good idea if you want your logging centralized at the web application level. But the downside is you will need to change all your code to use the log4j classes instead of the java.util.logging classes.
I agree. Here's the link:
subject: java.util.logging
It's not a secret anymore!