|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.core.log.FileLimitSizeLogWriter
public class FileLimitSizeLogWriter
The FileLogWriter is a LogListener
that writes (appends) to a supplied file.
Field Summary | |
---|---|
static java.lang.String |
ARCHIVE_PREFIX
The ARCHIVE_PREFIX is a prefixed value to the renamed log file. |
static java.lang.String |
FILE_SIZE_LIMIT
The FILE_SIZE_LIMIT controls the file size limit at which the file will rolled-over (i.e., when it closed and renamed due to size). |
static java.lang.String |
FILE_SIZE_MONITOR_TIME
the FILE_SIZE_MONITOR_TIME interval is in minutes and controls when the monitoring thread will determine if the file has reach the LIMIT to be swapped out. |
static java.lang.String |
TIMESTAMP_FORMAT
|
Constructor Summary | |
---|---|
FileLimitSizeLogWriter(java.io.File file)
|
|
FileLimitSizeLogWriter(java.io.File file,
boolean resetSystemStreams)
|
|
FileLimitSizeLogWriter(java.io.File file,
java.util.Properties properties)
|
|
FileLimitSizeLogWriter(java.io.File file,
java.util.Properties properties,
boolean rollover)
|
Method Summary | |
---|---|
static java.lang.String |
buildArchiveFileName(java.lang.String prefix,
java.lang.String suffix)
|
protected void |
createPlatformLogWriter(java.io.File file)
|
protected void |
createPlatformLogWriter(java.io.File file,
boolean resetSystemStreams)
|
static java.lang.String |
getDate()
|
protected java.io.File |
getLogFile()
|
protected com.metamatrix.internal.core.log.PlatformLimitSizeLogWriter |
getPlatformLogWriter()
|
void |
logMessage(LogMessage msg)
Notifies this listener that given status has been logged. |
protected void |
performRollOver()
perform the file rollover process |
protected void |
rolloverFile(java.io.File rollToFile)
|
void |
shutdown()
Close the stream to the file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String FILE_SIZE_LIMIT
#FILE_GROUP_NAME
public static final java.lang.String FILE_SIZE_MONITOR_TIME
LIMIT
to be swapped out.
public static final java.lang.String ARCHIVE_PREFIX
public static final java.lang.String TIMESTAMP_FORMAT
Constructor Detail |
---|
public FileLimitSizeLogWriter(java.io.File file)
public FileLimitSizeLogWriter(java.io.File file, boolean resetSystemStreams)
public FileLimitSizeLogWriter(java.io.File file, java.util.Properties properties)
public FileLimitSizeLogWriter(java.io.File file, java.util.Properties properties, boolean rollover)
Method Detail |
---|
protected java.io.File getLogFile()
protected void createPlatformLogWriter(java.io.File file)
protected void createPlatformLogWriter(java.io.File file, boolean resetSystemStreams)
protected com.metamatrix.internal.core.log.PlatformLimitSizeLogWriter getPlatformLogWriter()
public void logMessage(LogMessage msg)
LogListener
logMessage
in interface LogListener
protected void performRollOver()
public void shutdown()
shutdown
in interface LogListener
protected void rolloverFile(java.io.File rollToFile)
public static java.lang.String buildArchiveFileName(java.lang.String prefix, java.lang.String suffix)
public static java.lang.String getDate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |