vanetsim.gui.helpers
Class AttackLogWriter

java.lang.Object
  extended by vanetsim.gui.helpers.AttackLogWriter

public final class AttackLogWriter
extends java.lang.Object

Helper Class for error logging.


Constructor Summary
AttackLogWriter()
           
 
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
 

Constructor Detail

AttackLogWriter

public AttackLogWriter()
Method Detail

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 located
format - 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()