|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--TwilightMinds.Log.Log | +--TwilightMinds.Log.FlatFileLog
The FlatFileLog writes to a string-delimited flat file, as might be
expected. LogEntry information is recorded:
timestamp type message exception
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
FlatFileLog(java.lang.String inputname,
java.lang.String inputlogfilepath,
java.lang.String inputdelimiter,
long inputmaxfilesizeinkilobytes)
The standard constructor for a FlatFileLog object. |
|
FlatFileLog(java.lang.String inputname,
java.lang.String inputlogfilepath,
java.lang.String inputdelimiter,
long inputmaxfilesizeinkilobytes,
long inputcycledelay)
Constructor allowing for specification of the cycle delay between periods of recording LogEntry objects. |
Method Summary | |
java.lang.String |
getDelimiter()
Return the delimiter string for this log. |
java.lang.String |
getLogFilePath()
Return the path for the log file written by this Log. |
long |
getMaxFileSizeInKiloBytes()
Return the maximum file size for this log. |
protected void |
recordLogEntry(LogEntry logentry)
Output a LogEntry object to the flat file. |
Methods inherited from class TwilightMinds.Log.Log |
addLogEntry, getCycleDelay, getLogName, isLogging, run, setCycleDelay, startLogging, stopLogging |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FlatFileLog(java.lang.String inputname, java.lang.String inputlogfilepath, java.lang.String inputdelimiter, long inputmaxfilesizeinkilobytes) throws LogException
public FlatFileLog(java.lang.String inputname, java.lang.String inputlogfilepath, java.lang.String inputdelimiter, long inputmaxfilesizeinkilobytes, long inputcycledelay) throws LogException
Method Detail |
public java.lang.String getLogFilePath()
public java.lang.String getDelimiter()
public long getMaxFileSizeInKiloBytes()
protected void recordLogEntry(LogEntry logentry) throws java.lang.Exception
recordLogEntry
in class Log
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |