|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.iperg.part.log.j2se.IpLatLogManager
public class IpLatLogManager
The IpLatLogManager
implements a manager that logs
property events (ADD, SET and REMOVE) to logiles in a format
accepted by the IPerG Logfile Analysis and Evaluation tool.
Note that after instantiating the Lat log manager, the
log
method shouldn't be called, since the manager is
able to catch all property events by itself. In fact, if
log
is indeed called, an exception will be thrown.
Constructor Summary | |
---|---|
IpLatLogManager(java.lang.String logFileDir,
java.lang.String logFileName)
Constructur used to create a new Lat log manager. |
Method Summary | |
---|---|
void |
handleEvent(IpEvent event)
Is called by PART whenever an event has been generated in the local process or received from the network. |
void |
log(java.lang.String message)
Write a message to the log. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IpLatLogManager(java.lang.String logFileDir, java.lang.String logFileName)
logFileDir
- Directory where the log file should be placedlogFileName
- The name of the log file. Note that the name
should not include an extension, the extension '.lat' will be
added by the manager itself.Method Detail |
---|
public void handleEvent(IpEvent event)
handleEvent
in interface IpEventHandler
event
- The eventpublic void log(java.lang.String message) throws java.io.IOException
TT:MM:SS - message
For example
12:04:58 - A game object was created
log
in interface IpLogManager
message
- The message to write to the log
java.io.IOException
- If an IO exception occurs while writing
the message
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |