vanetsim.gui.helpers
Class AttackLogWriter
java.lang.Object
vanetsim.gui.helpers.AttackLogWriter
public final class AttackLogWriter
- extends java.lang.Object
Helper Class for error logging.
Method Summary |
static java.lang.String |
getLogPath()
|
static void |
log(java.lang.String message)
Logs the attacker data. |
static void |
setLogPath(java.lang.String logPath)
|
static void |
setParameters(java.lang.String dir,
java.lang.String format)
Sets the parameters for the static class. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttackLogWriter
public AttackLogWriter()
setParameters
public static void setParameters(java.lang.String dir,
java.lang.String format)
- Sets the parameters for the static class.
- Parameters:
dir
- the directory where the error log files are locatedformat
- the format of the log files (txt
or xml
)
log
public static void log(java.lang.String message)
- Logs the attacker data.
- Parameters:
message
- data to log
setLogPath
public static void setLogPath(java.lang.String logPath)
getLogPath
public static java.lang.String getLogPath()