public class LogFileWriter
extends java.lang.Object
Constructor and Description |
---|
LogFileWriter()
Instantiates a new log file writer that uses the log directory for the logging file.
|
Modifier and Type | Method and Description |
---|---|
void |
appendText(PrintStreamListenerOutput pslOutput)
This method can be used in order to append the console output from a remote container
|
void |
appendText(java.util.Vector<PrintStreamListenerOutput> stack)
Appends the specified text vector to the log file.
|
static void |
deleteOldLogFiles(long timeStamp,
java.io.File logDirectory)
Deletes old log files.
|
java.lang.String |
getLoggingFileName(long timeStamp)
Returns the logging path and file name as string.
|
void |
stopFileWriter()
Stop the log file writer.
|
public LogFileWriter()
public java.lang.String getLoggingFileName(long timeStamp)
java.io.IOException
public void stopFileWriter()
java.io.IOException
public void appendText(PrintStreamListenerOutput pslOutput)
pslOutput
- the PrintStreamListenerOutputpublic void appendText(java.util.Vector<PrintStreamListenerOutput> stack)
stack
- the stackpublic static void deleteOldLogFiles(long timeStamp, java.io.File logDirectory)
CONSERVATION_PERIOD
will be removed out of the corresponding
month directorytimeStamp
- the current time in millisecondslogDirectory
- the logging directory to search in