public class Appender extends java.lang.Object implements SessionManager.Callback
Modifier and Type | Field and Description |
---|---|
protected long |
next
a time stamp used with rotating log files.
|
protected java.io.OutputStream |
os
the stream to write to.
|
Modifier | Constructor and Description |
---|---|
protected |
Appender()
For derived classes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
dontRemove(java.lang.Object key)
Used to flush asynchronous if configured to.
|
protected void |
flush()
Flush the stream.
|
protected void |
nextFile()
Dummy method, used in derived classes to rotate file.
|
java.lang.String |
toString()
Developer friendly toString().
|
void |
write(long now,
java.lang.String message)
writes the log message.
|
protected java.io.OutputStream os
protected long next
public void write(long now, java.lang.String message)
now
- current time, used to rotate files.message
- the log messageprotected void flush()
protected void nextFile()
public boolean dontRemove(java.lang.Object key)
dontRemove
in interface SessionManager.Callback
key
- the key which binds the session to the SessionManager.public java.lang.String toString()
toString
in class java.lang.Object