|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.editor2.ErrorLogger
public class ErrorLogger
Constructor Summary | |
---|---|
ErrorLogger()
Creates a new instance of ErrorLogger |
Method Summary | |
---|---|
void |
addToLog(java.lang.StackTraceElement[] s)
Adds the PrintStream to the Log. |
void |
addToLog(java.lang.String s)
Adds to a String Variable |
void |
clearTmpLog()
|
java.lang.String |
getFileName()
Gets the file Name |
byte[] |
getTmpLog()
|
void |
load()
Tries to Load a file called 'PEv2Errors.log' that is a file containing a log file for saving PE Errors |
void |
setFileName(java.lang.String fname)
Sets the file Name |
void |
writeToFile()
Writes contents of the stream to the log file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ErrorLogger()
Method Detail |
---|
public void load()
This method first tries to open the 'PEveErrors.log' file in the home folder. If this file does not exist in the home folder, it will obtain a default 'PEv2Errors.log' file stored in the programs Resources.
public void setFileName(java.lang.String fname)
fname
- The file Name in String Formatpublic java.lang.String getFileName()
public void addToLog(java.lang.StackTraceElement[] s)
public void addToLog(java.lang.String s)
public byte[] getTmpLog()
public void clearTmpLog()
public void writeToFile()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |