|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.prorefactor.io.LogWriter
public class LogWriter
Provides log and status writing. From LogFile, writes to statusLog, errorLog, and exceptionLog. Optionally logs output and errors to a PrintStream.
Constructor Summary | |
---|---|
LogWriter(java.io.PrintStream printStream)
The printStream is optional (use null if you don't want one). |
Method Summary | |
---|---|
void |
close()
Closes the log files, but not the print stream. |
void |
log(java.lang.String logText)
Log the process status with newline. |
void |
logError(java.lang.String errorLogPrefix,
java.lang.String errorText)
Log an error. |
void |
logException(java.lang.String logPrefix,
java.lang.Exception exception)
Log an exception. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogWriter(java.io.PrintStream printStream) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void close() throws java.io.IOException
java.io.IOException
public void log(java.lang.String logText) throws java.io.IOException
java.io.IOException
public void logError(java.lang.String errorLogPrefix, java.lang.String errorText) throws java.io.IOException
java.io.IOException
public void logException(java.lang.String logPrefix, java.lang.Exception exception) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |