public class StreamHandler extends Handler
StreamHandler exports log records to an
OutputStream.| Constructor and Description |
|---|
StreamHandler(OutputStream stream,
Formatter formatter)
Creates a new
StreamHandler that exports log records
to an OutputStream in a given format. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this Handler and frees all of its resources
|
void |
flush()
Flushes an buffered output
|
boolean |
isLoggable(LogRecord record)
Returns
true if a log record will be handled by this
handler. |
void |
publish(LogRecord record)
Publishes a log record to this handler
|
getFormatter, getLevel, setFormatter, setLevelpublic StreamHandler(OutputStream stream, Formatter formatter)
StreamHandler that exports log records
to an OutputStream in a given format.public void close()
Handlerpublic void flush()
Handlerpublic boolean isLoggable(LogRecord record)
Handlertrue if a log record will be handled by this
handler.isLoggable in class HandlerCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.