Menu ▾ ▴

#51 System property java.util.logging.class

open
nobody
LogManager (6)
5
2002-04-26
2002-04-26
Bryan Tower
No

When the system property java.util.logging.class is
set, the LogManager.getLogManager() does not return
the singleton LogManager ("theSingleton"). Instead it
generates a new object as defined by the
java.util.logging.class every time it is called.

I believe the solution is simple, merely add the
following lines to the beginning of getLogManager()

    if\(theSingleton \!= null\)\{
        return theSingleton;

}

Discussion


Log in to post a comment.