final LoggerOutputStream outputStream =
new LoggerOutputStream( logger, Priority.DEBUG );
final PrintStream output = new PrintStream( outputStream, true );
System.setOut( output );
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final Logger | |
| private final StringBuffer | |
| private final Priority |
| Access | Constructor and Description |
|---|---|
| public | LoggerOutputStream(final Logger
the logger to write to logger, final Priority the priority at which to log priority)Construct OutputStreamLogger to write to a particular logger at a particular priority. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | |
| public synchronized void | flush()
Overrides java. Implements java. |
| public void | write(final int
the byte of data data)Implements abstract java. |
| m_closed | back to summary |
|---|---|
| private boolean m_closed | |
| m_logger | back to summary |
|---|---|
| private final Logger m_logger | |
| m_output | back to summary |
|---|---|
| private final StringBuffer m_output | |
| m_priority | back to summary |
|---|---|
| private final Priority m_priority | |
| LoggerOutputStream | back to summary |
|---|---|
| public LoggerOutputStream(final Logger logger, final Priority priority) Construct OutputStreamLogger to write to a particular logger at a particular priority. | |
| checkValid | back to summary |
|---|---|
| private void checkValid() throws IOException Make sure stream is valid.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Shutdown stream.
| |
| flush | back to summary |
|---|---|
| public synchronized void flush() throws IOException Overrides java. Implements java. Flush data to underlying logger.
| |
| write | back to summary |
|---|---|
| public void write(final int data) throws IOException Implements abstract java. Write a single byte of data to output stream.
| |