public interface LegacyLogManagerClientService
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupRotation(java.lang.String filePath,
int numLogFiles)
Removes the sequenced log files with the same name in the same folder that exceed the max count of
numLogFiles, while preserving the current log file and of its predecessors.
|
boolean |
clear()
Clears the content of the currently open log file.
|
boolean |
close()
Closes the file.
|
boolean |
isWritable(java.lang.String filePath)
Returns a flag to indicate if the file path is writable.
|
java.lang.String |
makeSequencedLogFile(java.lang.String logFileConfig,
int logThreshold)
Receives the clean file path from configs and returns the path modified with rotation number, next in
the sequence based on the existing files in the folder.
|
boolean |
open(java.lang.String filePath)
Opens the file for writing.
|
boolean |
write(java.lang.String logRecord)
Writes the log record.
|
boolean isWritable(java.lang.String filePath)
filePath - The file path to check for.true if the folder is writable, false otherwise.java.lang.String makeSequencedLogFile(java.lang.String logFileConfig,
int logThreshold)
logFileConfig - The clean file path from configs.logThreshold - The size of the file before rolling over.boolean open(java.lang.String filePath)
filePath - The file path.true if successful, false otherwise.boolean write(java.lang.String logRecord)
logRecord - The log record.true if successful, false otherwise.boolean close()
true if successful, false otherwise.boolean clear()
true if successful, false otherwise.void cleanupRotation(java.lang.String filePath,
int numLogFiles)
filePath - The log record.numLogFiles - The log record.