• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

"java util logging" in sdk 5 : can you configure Appenders per instance ?

 
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I use java.util.logging, but I never liked the fact that, *if* you configure through the standard '.properties' file, then Handlers are configured per *class* and not per *instance* .
E.g. if you need 3 different FileHandlers, they'll have the same configuration, same format, etc (as opposed to log4j that allows configuration per *instance*).

I know you can work around it with a little extra coding...

But i hear rumors that the problem was solved by Sun in the new sdk 5.
Unfortunatly I couldn't find any documentation for it...
Would anyone happen to know if, indeed, sdk 5 allows you to define a configuration per *instance* of FileHandler ?

Thanks
reply
    Bookmark Topic Watch Topic
  • New Topic