maxFilesCount property
Maximum count of files to keep.
will be used to deleted old log files. If in the logFileDirectory there's files with prefix logNamePrefix and the count of files is greater than maxFilesCount, older files will be deleted.
Implementation
final int maxFilesCount;