org.prorefactor.io
Class LogFile

java.lang.Object
  extended by java.io.Writer
      extended by java.io.BufferedWriter
          extended by org.prorefactor.io.LogFile
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class LogFile
extends java.io.BufferedWriter

Log Files and IO for parse error logs, exception logs.


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
LogFile(java.io.File outFile)
           
 
Method Summary
static LogFile createErrorLog()
          Use the error log for parse errors or similar.
static LogFile createExceptionLog()
          Use the exception log for writing full exception stack traces.
static LogFile createOutputLog()
          Use the output log for writing normal processing messages.
 
Methods inherited from class java.io.BufferedWriter
close, flush, newLine, write, write, write
 
Methods inherited from class java.io.Writer
append, append, append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFile

public LogFile(java.io.File outFile)
        throws java.io.IOException
Throws:
java.io.IOException
Method Detail

createErrorLog

public static LogFile createErrorLog()
                              throws java.io.IOException
Use the error log for parse errors or similar.

Throws:
java.io.IOException

createExceptionLog

public static LogFile createExceptionLog()
                                  throws java.io.IOException
Use the exception log for writing full exception stack traces.

Throws:
java.io.IOException

createOutputLog

public static LogFile createOutputLog()
                               throws java.io.IOException
Use the output log for writing normal processing messages.

Throws:
java.io.IOException


Copyright © 2008 Joanju Software. All Rights Reserved.