Package ffx.ui

Class LogHandler


public class LogHandler extends Handler
The default ConsoleHanlder publishes logging to System.err. This class publishes to System.out, which is normally intercepted by the Force Field X Shell.

The formatter used reduces verbosity relative to the default SimpleFormatter.

Since:
1.0
Author:
Michael J. Schnieders
  • Constructor Details

    • LogHandler

      public LogHandler()
      Construct the Force Field X Log Handler.
      Since:
      1.0
  • Method Details

    • close

      public void close()

      Flush, but do not close System.out or the Shell.

      Specified by:
      close in class Handler
      Since:
      1.0
    • flush

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

      public void publish(LogRecord record)

      Publish a LogRecord.

      Specified by:
      publish in class Handler
      Since:
      1.0.
    • setMainPanel

      public void setMainPanel(MainPanel mainPanel)
      A reference to the Force Field X MainPanel container to shut down if we encounter a fatal (SEVERE) exception. If we are not in Headless mode, then LogRecords can be published to the ModelingShell.
      Parameters:
      mainPanel - the Force Field X MainPanel.
      Since:
      1.0