public class ConsoleHandlerStream extends StreamHandler
ConsoleHandler.
Supports the configuration parameters of ConsoleHandler -- .level,
.filter, .formatter and .encoding.
Defaults:
TextFormatter rather than SimpleFormatterhandlers=org.apache.jena.atlas.logging.java.ConsoleHandlerStreamor to configure the formatter as well:
handlers=org.apache.jena.atlas.logging.java.ConsoleHandlerStream org.apache.jena.atlas.logging.java.TextFormatter.format = %5$tT %3$-5s %2$-20s -- %6$s
| Constructor and Description |
|---|
ConsoleHandlerStream() |
ConsoleHandlerStream(OutputStream outputStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
publish(LogRecord record) |
close, flush, isLoggable, setEncodinggetEncoding, getErrorManager, getFilter, getFormatter, getLevel, setErrorManager, setFilter, setFormatter, setLevelpublic ConsoleHandlerStream()
public ConsoleHandlerStream(OutputStream outputStream)
public void publish(LogRecord record)
publish in class StreamHandlerLicenced under the Apache License, Version 2.0