vanetsim.gui.helpers
Class PrivacyLogWriter

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

public final class PrivacyLogWriter
extends java.lang.Object

Helper Class for error logging.


Constructor Summary
PrivacyLogWriter()
           
 
Method Summary
static java.lang.String getLogPath()
           
static void log(java.lang.String message)
          Logs the attacker data.
static void log(java.lang.String message, int mode)
          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

PrivacyLogWriter

public PrivacyLogWriter()
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,
                       int mode)
Logs the attacker data.

Parameters:
message - data to log

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