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!

"java util logging" in JSE 5 : can you configure FileHandler per instance ?

807569May 22 2006
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 19 2006
Added on May 22 2006
0 comments
110 views