com.objectwave.utility
Class ExceptionLogger

java.lang.Object
  |
  +--com.objectwave.utility.ExceptionLogger
All Implemented Interfaces:
java.util.EventListener, StatusEventListener

public class ExceptionLogger
extends java.lang.Object
implements StatusEventListener

Any time an exception is the source of a StatusEvent, we'll log the time and the stack trace to the log file.


Constructor Summary
ExceptionLogger()
           
 
Method Summary
protected  void logException(java.lang.Exception e)
           
 void setLogFile(java.lang.String fileName)
           
 void updateStatus(StatusEvent evt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionLogger

public ExceptionLogger()
Method Detail

logException

protected void logException(java.lang.Exception e)
                     throws java.io.IOException
java.io.IOException

setLogFile

public void setLogFile(java.lang.String fileName)

updateStatus

public void updateStatus(StatusEvent evt)
Specified by:
updateStatus in interface StatusEventListener