|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ispheres.server.core.LogFile
public class LogFile
Used to write to xml error log files.
| Constructor Summary | |
|---|---|
LogFile(java.io.File file)
Construct a LogFile from a File. |
|
| Method Summary | |
|---|---|
void |
close()
Close the LogFile, saving the changes. |
void |
writeError(java.lang.String type,
java.lang.String reason)
Append the reason as an error to the errorlog. |
void |
writeError(java.lang.Throwable e)
Append the exception to the end of the file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogFile(java.io.File file)
throws java.io.IOException
file - the file to write the log to.
java.io.IOException - if the log file does not exist.| Method Detail |
|---|
public final void writeError(java.lang.Throwable e)
throws java.io.IOException
e - The exception to write to the file.
java.io.IOException - if unable to write to the log file.
public final void writeError(java.lang.String type,
java.lang.String reason)
throws java.io.IOException
type - the type (name) of the error.reason - an explanation of the error.
java.io.IOException - if unable to write to the log file.
public final void close()
throws java.io.IOException
java.io.IOException - if unable to write to the log file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||