java.lang.Object
java.io.Writer
com.lutris.logging.ChannelWriter
- class ChannelWriter
- extends java.io.Writer
Internal Writer object that interfaces to the LogChannel.
Can't be inner class of LogWriter, it must be passed
to super constructor.
|
Method Summary |
void |
close()
Close is a no-op. |
void |
flush()
Flush the buffer to the log file. |
void |
write(char[] cbuf,
int off,
int len)
Main write method that transfers stuff to the buffer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
private java.lang.StringBuffer buffer
channel
private LogChannel channel
level
private int level
enabled
private boolean enabled
ChannelWriter
public ChannelWriter(LogChannel logChannel,
int logLevel)
- Construct a new writer.
write
public void write(char[] cbuf,
int off,
int len)
- Main write method that transfers stuff to the buffer.
flush
public void flush()
- Flush the buffer to the log file.
close
public void close()
- Close is a no-op.