discovery
Class Log

java.lang.Object
  extended by discovery.Log

public class Log
extends java.lang.Object

The Log class is responsible for writing the log files when an exception occurs within the system. The time of the occurance and the stack trace is printed to make it easier to correct errors in the system.

Author:
Gunn Olaussen & Kirsti N. Torgersen

Constructor Summary
Log()
           
 
Method Summary
static void write(java.lang.Exception exception)
          The write message opens the log file if it exists or it creates a new file to which it writes the stack trace of the exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log

public Log()
Method Detail

write

public static void write(java.lang.Exception exception)
The write message opens the log file if it exists or it creates a new file to which it writes the stack trace of the exception.

Parameters:
exception - Exception The exception which occured during execution