public class LogOutputStream extends OutputStream
| Modifier and Type | Field and Description |
|---|---|
protected Level |
level |
protected Logger |
logger |
| Constructor and Description |
|---|
LogOutputStream(String facility)
Log to the specified facility at the default FINE level.
|
LogOutputStream(String facility,
Level level)
Log to the specified facility at the specified level.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
log(String msg)
Log the specified message.
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
close, flushpublic LogOutputStream(String facility)
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionprotected void log(String msg)
Copyright © 2017. All rights reserved.