/* * Default constructor. This is not public because there should be only one * {@code LogManager} instance, which can be get by * {@code LogManager.getLogManager()}. This is protected so that * application can subclass the object. */ protected LogManager() { loggers = new Hashtable <String, Logger>(); props = new Properties(); listeners = new java.beans.PropertyChangeSupport(this); // add shutdown hook to ensure that the associated resource will be // freed when JVM exits java.lang.Runtime.getRuntime().addShutdownHook(new IAC_SHUTDOWN_THREAD()); }
/** * Default constructor. This is not public because there should be only one * {@code LogManager} instance, which can be get by * {@code LogManager.getLogManager()}. This is protected so that * application can subclass the object. */ protected LogManager() { loggers = new Hashtable<String, Logger>(); props = new Properties(); listeners = new java.beans.PropertyChangeSupport(this); // add shutdown hook to ensure that the associated resource will be // freed when JVM exits java.lang.Runtime.getRuntime().addShutdownHook(new IAC_SHUTDOWN_THREAD()); }