Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

problem using SimpleFormatter in logging

807603Mar 11 2006 — edited Nov 22 2007
Hi
Iam using Logging class provided by JDK and have created a logging.properties file which specifies to use a SimpleFormatter for FileHandler. This file is specified while running using system properties.
...
java.util.logging.FileHandler.level=ALL 
java.util.logging.ConsoleHandler.level=SEVERE
java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter
.....
but the log file is getting generated in xml format.

The run gives the following message before proceeding..
<b>
Cant set level for java.util.logging.FileHandler
Cant set level for java.util.logging.ConsoleHandler
</b>

What can be the problem??
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 20 2007
Added on Mar 11 2006
9 comments
695 views