public class LogFile extends java.lang.Object implements SessionManager.Callback
Constructor and Description |
---|
LogFile(java.lang.String bn)
Create a
LogFile using the specified base name. |
LogFile(java.lang.String bn,
java.lang.String fmt)
Create a
LogFile using the specified base name. |
Modifier and Type | Method and Description |
---|---|
boolean |
dontRemove(java.lang.Object key)
Is called be the removeButAsk() function.
|
void |
write(java.lang.String msg)
Append a message to the log file.
|
void |
writeDate(java.lang.String msg)
Append a message to the log file and add a date/time stamp.
|
void |
writeln(byte[] msg)
Append a message to the log file.
|
void |
writeln(java.lang.String msg)
Append a message to the log file.
|
public LogFile(java.lang.String bn)
LogFile
using the specified base name. The actual date is always added to the base name,
and each day a new log file is created. If * is used as base name, stdout is used for output.bn
- the log files base namepublic LogFile(java.lang.String bn, java.lang.String fmt)
LogFile
using the specified base name. The actual date is always added to the base name,
and each day a new log file is created. If * is used as base name, stdout is used for output.bn
- the log files base namefmt
- the date format which is appended to the basenamepublic void writeDate(java.lang.String msg)
msg
- the messagepublic void writeln(java.lang.String msg)
msg
- the messagepublic void writeln(byte[] msg)
msg
- the messagepublic void write(java.lang.String msg)
msg
- the messagepublic boolean dontRemove(java.lang.Object key)
SessionManager.Callback
dontRemove
in interface SessionManager.Callback
key
- the key which binds the session to the SessionManager.