Package ffx.ui
Class LogHandler
java.lang.Object
java.util.logging.Handler
ffx.ui.LogHandler
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 Summary
-
Method Summary
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
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.
-
flush
public void flush() -
publish
Publish a LogRecord.
-
setMainPanel
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
-