This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes java.util.Logging configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "java.util.Logging configuration" Watch "java.util.Logging configuration" New topic

java.util.Logging configuration

Jay Abrahm
Ranch Hand

Joined: May 28, 2008
Posts: 183
I am having troubles configuring java.util.logging. I have set the JVM parameters in RAD 7.0 as follows
Application servers > server1 > Process Definition > Java Virtual Machine > Generic JVM arguments

-Xquickstart -Djava.util.logging.config.file="file:C:/Project/src/"

# Specify the handlers to create in the root logger
# (all loggers are children of the root logger)
# The following creates two handlers
handlers = java.util.logging.ConsoleHandler, java.util.logging.FileHandler

# Set the default logging level for the root logger
.level = SEVERE

# Set the default logging level for new ConsoleHandler instances
java.util.logging.ConsoleHandler.level = SEVERE

# Set the default logging level for new FileHandler instances
java.util.logging.FileHandler.level = SEVERE

# Set the default formatter for new ConsoleHandler instances
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

# Set the default logging level for the logger named com.mycompany
com.mycompany.level = ALL

I had set it to severe but even then the info logs are being displayed. Do I need to configure some more to get this working ?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: java.util.Logging configuration
It's not a secret anymore!