Package nxt.util
Class NxtLogManager
- java.lang.Object
-
- java.util.logging.LogManager
-
- nxt.util.NxtLogManager
-
public class NxtLogManager extends java.util.logging.LogManager
Java LogManager extension for use with Nxt
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
readConfiguration(java.io.InputStream inStream)
Reconfigure logging support using a configuration filevoid
reset()
Reset the log handlers This method is called to reset the log handlers.
-
-
-
Constructor Detail
-
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 Detail
-
readConfiguration
public void readConfiguration(java.io.InputStream inStream) throws java.io.IOException, java.lang.SecurityException
Reconfigure logging support using a configuration file- Overrides:
readConfiguration
in classjava.util.logging.LogManager
- Parameters:
inStream
- Input stream- Throws:
java.io.IOException
- Error reading input streamjava.lang.SecurityException
- 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:
reset
in classjava.util.logging.LogManager
-
-