public class SimpleConsoleHandler extends ConsoleHandler
| Constructor and Description |
|---|
SimpleConsoleHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Do nothing.
|
void |
flush()
Do nothing.
|
int |
getErrLevel()
Return the level at which the record will be printed on the System.err.
|
boolean |
isLoggable(LogRecord record)
Check if this Handler would actually log a given LogRecord.
|
void |
publish(LogRecord record)
Format and publish a LogRecord on the System.out Stream, or System.err, depending on the level of the record.
|
void |
setErrLevel(int level)
Set the level at which the record will be printed on the System.err.
|
protected void |
setOutputStream(OutputStream out)
Do nothing.
|
setEncodinggetEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevelpublic void setErrLevel(int level)
level - the levelpublic int getErrLevel()
public void close()
close in class ConsoleHandlerpublic void flush()
flush in class StreamHandlerprotected void setOutputStream(OutputStream out) throws SecurityException
setOutputStream in class StreamHandlerSecurityExceptionpublic boolean isLoggable(LogRecord record)
isLoggable in class StreamHandlerpublic void publish(LogRecord record)
publish in class ConsoleHandlerrecord - description of the log event. A null record is silently ignored and is not published