Package nxt.util
Class NxtLogManager
java.lang.Object
java.util.logging.LogManager
nxt.util.NxtLogManager
Java LogManager extension for use with Nxt
-
Field Summary
Fields inherited from class java.util.logging.LogManager
LOGGING_MXBEAN_NAME -
Constructor Summary
ConstructorsConstructorDescriptionCreate the Nxt log manager We will let the Java LogManager create its shutdown hook so that the shutdown context will be set up properly. -
Method Summary
Modifier and TypeMethodDescriptionvoidreadConfiguration(InputStream inStream) Reconfigure logging support using a configuration filevoidreset()Reset the log handlers This method is called to reset the log handlers.Methods inherited from class java.util.logging.LogManager
addConfigurationListener, addLogger, checkAccess, getLogger, getLoggerNames, getLoggingMXBean, getLogManager, getProperty, readConfiguration, removeConfigurationListener, updateConfiguration, updateConfiguration
-
Constructor Details
-
NxtLogManager
public NxtLogManager()Create the Nxt log manager We will let the Java LogManager create its shutdown hook so that the shutdown context will be set up properly. However, we will intercept the reset() method so we can delay the actual shutdown until we are done terminating the Nxt processes.
-
-
Method Details
-
readConfiguration
Reconfigure logging support using a configuration file- Overrides:
readConfigurationin classLogManager- Parameters:
inStream- Input stream- Throws:
IOException- Error reading input streamSecurityException- Caller does not have LoggingPermission("control")
-
reset
public void reset()Reset the log handlers This method is called to reset the log handlers. We will forward the call during logging reconfiguration but will ignore it otherwise. This allows us to continue to use logging facilities during Nxt shutdown.- Overrides:
resetin classLogManager
-