I've put the MaxBackupIndex = 6 and it doesn't work. Anyone knows why?
package com.codegym.task.task34.task3409;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Properties;
/*
Setting up a logger
*/
public class Solution {
public static void main(String args[]) throws IOException {
String logProperties = "4.JavaCollections/src/" + Solution.class.getPackage().getName().replaceAll("[.]", "/") + "/log4j.properties";
Path path = Paths.get(logProperties).toAbsolutePath();
try (InputStream is = new FileInputStream(path.toFile())) {
Properties properties = new Properties();
properties.load(is);
}
}
}