• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

java.util.Logging configuration

 
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
You've gotta fight it! Don't give in! Read this tiny ad:
professionally read, modify and write PDF files from Java
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!