Package nxt.util

Class NxtLogManager


public class NxtLogManager extends LogManager
Java LogManager extension for use with Nxt
  • 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

      public void readConfiguration(InputStream inStream) throws IOException, SecurityException
      Reconfigure logging support using a configuration file
      Overrides:
      readConfiguration in class LogManager
      Parameters:
      inStream - Input stream
      Throws:
      IOException - Error reading input stream
      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 class LogManager