if (this.logFiles.size() > this.maxAmountOfFiles) {
this.onMaxLogFilesExceeded();
}
return this.currentFileWriter;
}
<BUG>private void onMaxEntriesInFileExceeded() {
</BUG>
WriterUtil.close(this.currentFileWriter, this.writerLog);
final Path newFile = this.getNextFileName(this.fileExtensionWithDot);
try {

if (this.logFiles.size() > this.maxAmountOfFiles) {
this.onMaxLogFilesExceeded();
}
return this.currentFileWriter;
}
private void onThresholdExceeded() {
WriterUtil.close(this.currentFileWriter, this.writerLog);
final Path newFile = this.getNextFileName(this.fileExtensionWithDot);
try {
