File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Other JSE/JEE APIs
Author
java.util.Logging configuration
Jay Abrahm
Ranch Hand
Joined: May 28, 2008
Posts: 182
posted
Dec 21, 2008 23:00:00
0
Hi,
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/ConfiguredLogging.properties"
# 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 agree. Here's the link:
jrebel
subject: java.util.Logging configuration
Similar Threads
Logging (java.util.logging)
I can't seem to set the log level on my package
RAD6/WAS6 Logging config..
why the logging is not working ?
java.util.Logging configuration...
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter