From b020388b9969c31fe2c77d7658e6444214b77bd0 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 22 Jun 2016 22:13:38 -0700 Subject: [PATCH] MC-100524: Fix log files getting overwritten https://bugs.mojang.com/browse/MC-100524 Log files were previously overwritten when more than 7 were created on the same day. This is caused by Log4J's default behavior with DefaultRolloverStrategy, which defaults to a max of 7. While a max of 1000 doesn't fully stop this problem from happening, for 1000 log files in a single day to be reached the server would have to restart faster than once every 1.5 minutes, which is unlikely to happen. So 1000 seems like a good limit. A higher max isn't used because when it gets higher, there are performance hits due to the way Log4J checks for the next file. By: Pokechu22 --- paper-server/src/main/resources/log4j2.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/paper-server/src/main/resources/log4j2.xml b/paper-server/src/main/resources/log4j2.xml index 08d68aa8f..4a5ca1ebd 100644 --- a/paper-server/src/main/resources/log4j2.xml +++ b/paper-server/src/main/resources/log4j2.xml @@ -11,6 +11,7 @@ +