|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.logging.Handler de.lmu.ifi.dbs.elki.logging.CLISmartHandler
public class CLISmartHandler
Handler that handles output to the console with clever formatting.
Field Summary | |
---|---|
private Formatter |
debugformat
Formatter for debugging messages |
private Writer |
err
Output stream for error output. |
private Formatter |
errformat
Formatter for error messages |
private Formatter |
msgformat
Formatter for regular messages (informational records) |
private Writer |
out
Output stream for non-critical output. |
private ProgressTracker |
ptrack
Tracker for progress messages |
Constructor Summary | |
---|---|
CLISmartHandler()
Default constructor using System.out and System.err |
|
CLISmartHandler(OutputStream out,
OutputStream err)
Constructor |
Method Summary | |
---|---|
void |
close()
Close output streams. |
void |
flush()
Flush output streams |
void |
publish(LogRecord record)
Publish a log record. |
Methods inherited from class java.util.logging.Handler |
---|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Writer out
private Writer err
private Formatter msgformat
private Formatter debugformat
private Formatter errformat
private ProgressTracker ptrack
Constructor Detail |
---|
public CLISmartHandler(OutputStream out, OutputStream err)
out
- Regular output streamerr
- Error output streampublic CLISmartHandler()
System.out
and System.err
Method Detail |
---|
public void close() throws SecurityException
close
in class Handler
SecurityException
public void flush()
flush
in class Handler
public void publish(LogRecord record)
publish
in class Handler
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |