Class FileLastModifiedCleanStrategy
- java.lang.Object
-
- com.elvishew.xlog.printer.file.clean.FileLastModifiedCleanStrategy
-
- All Implemented Interfaces:
CleanStrategy
public class FileLastModifiedCleanStrategy extends java.lang.Object implements CleanStrategy
Limit the file life of a max time.- Since:
- 1.5.0
-
-
Constructor Summary
Constructors Constructor Description FileLastModifiedCleanStrategy(long maxTimeMillis)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanshouldClean(java.io.File file)Whether we should clean a specified log file.
-
-
-
Method Detail
-
shouldClean
public boolean shouldClean(java.io.File file)
Description copied from interface:CleanStrategyWhether we should clean a specified log file.- Specified by:
shouldCleanin interfaceCleanStrategy- Parameters:
file- the log file- Returns:
- true is we should clean the log file
-
-