webmngr.util
Class LogWriter

java.lang.Object
  |
  +--webmngr.util.LogWriter

public class LogWriter
extends java.lang.Object

Class used to write the log occurences on specific files


Constructor Summary
LogWriter(java.lang.String fileName)
          Default Constructor
 
Method Summary
 java.io.PrintStream getPrintStream()
          Returns this LogWriter PrintStream
 void log(java.lang.Exception e)
          Logs an exception to the log file
 void write(java.lang.String text)
          Writes a text on the log file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogWriter

public LogWriter(java.lang.String fileName)
          throws java.io.FileNotFoundException,
                 java.io.IOException
Default Constructor
Parameters:
fileName - the log file name
Method Detail

write

public void write(java.lang.String text)
Writes a text on the log file
Parameters:
text - Text to be written

log

public void log(java.lang.Exception e)
Logs an exception to the log file
Parameters:
e - Exception to be logged

getPrintStream

public java.io.PrintStream getPrintStream()
Returns this LogWriter PrintStream