Class VerboseFileLoggingHandler


class VerboseFileLoggingHandler extends FileHandler
A VerboseLoggingHandler publishes log records to a File in verbose format.

The formatter used is a XinapseTextOrGUILoggerFormatter.

  • Method Details

    • close

      public void close()
      Forces any data that may have been buffered to the underlying output devices, but does not close System.out or System.err.

      In case of an I/O failure, the ErrorManagers of this VerboseLoggingHandler will be informed, but the caller of this method will not receive an exception.

      Overrides:
      close in class FileHandler
    • publish

      public void publish(LogRecord logRecord)
      Publishes a LogRecord, provided the record passes all tests for being loggable.

      Most applications do not need to call this method directly. Instead, they will use a Logger, which will create LogRecords and distribute them to registered handlers.

      This implementation of publish calls flush() for every request to publish a record, so they appear immediately.

      Overrides:
      publish in class FileHandler
      Parameters:
      logRecord - the log event to be published.