• 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

java.util.Logging configuration...

 
Ranch Hand
Posts: 624
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've finally got fed up of the crappy inefficient "SystemOut" logging implemented by others around here and decided to overhaul ALL our logging with 'propper' java.util.Logging.

However, I'm getting confused about how to configure stuff to get what I want!

My code has sections like this:



with logging calls throughout that are like this:




At first this looked to be working ok... I was getting log files created for each of my various functional areas and they ARE being populated with the information. BUT - I have 2 problems:
1) The data is in XML format rather than just simple text, and
2) I get multiple versions of the log file (one for each calling class it seems)...

I looked at my logging.properties file in the following location that I assumed to be the relevant one for my local instance of WAS6 within my RAD6 IDE:
"C:\Program Files\IBM\Rational\SDP\6.0\runtimes\base_v6\java\jre\lib\logging.properties"

..and found that I already have file handlers configured (I think) to use the Simple formatter...

am I missing something - Is there a way I can get my logs to append rather than create new files?

 
It is no measure of health to be well adjusted to a profoundly sick society. -Krishnamurti Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic