AutoFuzzMain
Class LoggingFacility

java.lang.Object
  extended by AutoFuzzMain.LoggingFacility

public class LoggingFacility
extends java.lang.Object

This class is used to control logging of AutoFuzz during fuzzing process. All messages should go through functions provided by this class

Author:
Serge Gorbunov

Constructor Summary
LoggingFacility()
           
 
Method Summary
 java.io.File instantiateNewFuzzingLogFile()
          Creates a new log file in :\\AutoFuzz\Logs\ to store the progress of the fuzzer
 java.io.File instantiateNewSystemLogFile(java.lang.String logName)
          Creates a new system log file in :\\AutoFuzz\Logs\
 boolean writeLogMessage(java.io.File f, int severity, java.lang.String msg)
          This function should be used to log all AutoFuzz messages
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingFacility

public LoggingFacility()
Method Detail

instantiateNewFuzzingLogFile

public java.io.File instantiateNewFuzzingLogFile()
Creates a new log file in :\\AutoFuzz\Logs\ to store the progress of the fuzzer

Returns:
A file object if the file was successfully created, otherwise null

instantiateNewSystemLogFile

public java.io.File instantiateNewSystemLogFile(java.lang.String logName)
Creates a new system log file in :\\AutoFuzz\Logs\

Returns:
A file object if the file was successfully created, otherwise null

writeLogMessage

public boolean writeLogMessage(java.io.File f,
                               int severity,
                               java.lang.String msg)
This function should be used to log all AutoFuzz messages

Parameters:
f - File name to which log message will be written
severity - Severity level of the error. The following levels are recognized: 0 - Info, 1 - Warning, 2 - Error, 3 - Critical
msg - The actual message to be written
Returns:
True if the message was successfully written, false otherwise