|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.alicebot.server.core.logging.XMLLog
public class XMLLog
Provides a simplistic XML file writing facility.
Constructor Summary | |
---|---|
XMLLog()
|
Method Summary | |
---|---|
static XMLResourceSpec |
getChatlogSpecClone()
Returns a generic chat log spec that can be customized. |
static void |
log(java.lang.String message,
XMLResourceSpec spec)
Writes a message to an XML log file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLLog()
Method Detail |
---|
public static XMLResourceSpec getChatlogSpecClone()
public static void log(java.lang.String message, XMLResourceSpec spec)
ROLLOVER
, the file will be renamed and a
new file created. Note that the approach currently used has an
important defect: it only counts entries during the runtime of
the bot; it will not count entries in an existing log file, so
if the bot is restarted many times and ROLLOVER
is rather
large, actual logfiles may exceed the limit significantly.
message
- the text of the log eventspec
- the log spec
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |