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.
|
setEncoding
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
public void setErrLevel(int level)
level
- the levelpublic int getErrLevel()
public void close()
close
in class ConsoleHandler
public void flush()
flush
in class StreamHandler
protected void setOutputStream(OutputStream out) throws SecurityException
setOutputStream
in class StreamHandler
SecurityException
public boolean isLoggable(LogRecord record)
isLoggable
in class StreamHandler
public void publish(LogRecord record)
publish
in class ConsoleHandler
record
- description of the log event. A null record is silently ignored and is not published