|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.autonomy.utilities.LogFile
Class to create and maintain log files.
Constructor Summary | |
LogFile(java.lang.String sFileName,
long lnMaxKb)
Create a log file. |
Method Summary | |
boolean |
getLogging()
Check to see whether the log file is logging or not |
void |
log(java.lang.String s)
Write the string s to the log file. |
void |
Log(java.lang.String s)
Write the string s to the log file |
void |
logThrowable(java.lang.Throwable t)
Writes the throwable's stack trace to the log file |
void |
setDateStamp(int nNewVal)
The date format value is a series of flags to determine how much date information is written before each entry in the log file: If bit 0 is set, each log entry will be preceeded by the date. If bit 1 is set, each log entry will be preceeded by the time of day upto the second. |
void |
setLogging(boolean bLogging)
If this is set to true, the log file will behave as normal. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LogFile(java.lang.String sFileName, long lnMaxKb)
sFileName
- Full path to the log filelnMaxKb
- Maximum size of file before it is backed up and a new one startedMethod Detail |
public void setLogging(boolean bLogging)
public boolean getLogging()
public void Log(java.lang.String s)
public void setDateStamp(int nNewVal)
nNewVal
- New value of loggin flag. Use values between 0 - 7.public void log(java.lang.String s)
public void logThrowable(java.lang.Throwable t)
t
- Throwable (Exception or Error) to be logged
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |