public class CLISmartHandler
extends java.util.logging.Handler
Modifier and Type | Field and Description |
---|---|
private java.util.logging.Formatter |
debugformat
Formatter for debugging messages
|
private java.io.Writer |
err
Output stream for error output.
|
private java.util.logging.Formatter |
errformat
Formatter for error messages
|
private java.util.logging.Formatter |
msgformat
Formatter for regular messages (informational records)
|
private java.io.Writer |
out
Output stream for non-critical output.
|
private ProgressTracker |
ptrack
Tracker for progress messages
|
Constructor and Description |
---|
CLISmartHandler()
Default constructor using
System.out and System.err |
CLISmartHandler(java.io.OutputStream out,
java.io.OutputStream err)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close output streams.
|
void |
flush()
Flush output streams
|
void |
publish(java.util.logging.LogRecord record)
Publish a log record.
|
private java.io.Writer out
private java.io.Writer err
private java.util.logging.Formatter msgformat
private java.util.logging.Formatter debugformat
private java.util.logging.Formatter errformat
private ProgressTracker ptrack
public CLISmartHandler(java.io.OutputStream out, java.io.OutputStream err)
out
- Regular output streamerr
- Error output streampublic CLISmartHandler()
System.out
and System.err
public void close() throws java.lang.SecurityException
close
in class java.util.logging.Handler
java.lang.SecurityException
public void flush()
flush
in class java.util.logging.Handler
public void publish(java.util.logging.LogRecord record)
publish
in class java.util.logging.Handler
Copyright © 2019 ELKI Development Team. License information.