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!

Subclassing java.util.logging.LogManager

807605Oct 11 2007 — edited Oct 12 2007
i am trying to subclass the LogManager class and have tried adding the following System property as mentioned in the Java API :-

java.util.logging.manager = CustomLogger

where,
CustomLogger is the name of my subclass of LogManager.

Still, when I ran the program, the instance of the global log manager (java.util.logging.LogManager) is only created. It's not creating the instance of "CustomLogger".
I have tried to give the full package name of the subclass as follows, still it is creating the instance of java.util.logging.LogManager only:-

java.util.logging.manager = com.test.logging.CustomLogger

Any pointers to resolve this issue will be of great help..

~Thanks
Dev
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 9 2007
Added on Oct 11 2007
13 comments
603 views