Class BridgingLogHandler

java.lang.Object
java.util.logging.Handler
io.deephaven.logging.BridgingLogHandler

public final class BridgingLogHandler extends Handler
This class is used to handle java.util.logging.Logger messages. The following functionality is provided:
  1. forward messages to a Logger once it is set
  2. queue messages until a Logger is set
  3. filter which messages will be logged
  4. optionally flush any queued messages to stdout on process shutdown
  • Constructor Details

    • BridgingLogHandler

      public BridgingLogHandler()
  • Method Details

    • setFlushPendingOnShutdown

      public static void setFlushPendingOnShutdown(boolean v)
    • setLogger

      public static void setLogger(@NotNull com.fishlib.io.logger.Logger log)
      Flush any pending messages and permanently change the mode of BridgingLogHandler to filter and log immediately instead of queueing.
      Parameters:
      log - messages will be passed through to this logger
    • appendPendingLogRecord

      public static void appendPendingLogRecord(com.fishlib.base.log.LogOutput logOutput, io.deephaven.logging.BridgingLogHandler.PendingLogRecord pendingLogRecord)
    • publish

      public void publish(LogRecord record)
      Specified by:
      publish in class Handler
    • flush

      public void flush()
      Specified by:
      flush in class Handler
    • close

      public void close() throws SecurityException
      Specified by:
      close in class Handler
      Throws:
      SecurityException