
public class CLISmartHandler extends Handler
| Modifier and Type | Field and Description | 
|---|---|
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 and Description | 
|---|
CLISmartHandler()
Default constructor using  
System.out and System.err | 
CLISmartHandler(OutputStream out,
               OutputStream err)
Constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()
Close output streams. 
 | 
void | 
flush()
Flush output streams 
 | 
void | 
publish(LogRecord record)
Publish a log record. 
 | 
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevelprivate Writer out
private Writer err
private Formatter msgformat
private Formatter debugformat
private Formatter errformat
private ProgressTracker ptrack
public CLISmartHandler(OutputStream out, OutputStream err)
out - Regular output streamerr - Error output streampublic CLISmartHandler()
System.out and System.errpublic void close()
           throws SecurityException
close in class HandlerSecurityException