From 78d38c0d3c13bea04a7c14b5645d70b4c61b4c3d Mon Sep 17 00:00:00 2001 From: Aikar Date: Fri, 22 May 2020 23:49:10 -0400 Subject: [PATCH] Update Log4J Configuration file to stop truncating stack traces This should help greatly (as long as this change works...) in understanding an exception when it doesn't get truncated with "... and 14 more" at a vital point of the stack trace. --- ...-Log4J-Configuration-Plugin-Loggers.patch} | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) rename Spigot-Server-Patches/{Disable-logger-prefix-for-various-plugins-bypassing-.patch => Improve-Log4J-Configuration-Plugin-Loggers.patch} (60%) diff --git a/Spigot-Server-Patches/Disable-logger-prefix-for-various-plugins-bypassing-.patch b/Spigot-Server-Patches/Improve-Log4J-Configuration-Plugin-Loggers.patch similarity index 60% rename from Spigot-Server-Patches/Disable-logger-prefix-for-various-plugins-bypassing-.patch rename to Spigot-Server-Patches/Improve-Log4J-Configuration-Plugin-Loggers.patch index e1d7f31902..4258e756b5 100644 --- a/Spigot-Server-Patches/Disable-logger-prefix-for-various-plugins-bypassing-.patch +++ b/Spigot-Server-Patches/Improve-Log4J-Configuration-Plugin-Loggers.patch @@ -1,8 +1,11 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Minecrell Date: Sat, 23 Sep 2017 21:07:20 +0200 -Subject: [PATCH] Disable logger prefix for various plugins bypassing the - plugin logger +Subject: [PATCH] Improve Log4J Configuration / Plugin Loggers + +Add full exceptions to log4j to not truncate stack traces + +Disable logger prefix for various plugins bypassing the plugin logger Some plugins bypass the plugin logger and add the plugin prefix manually to the log message. Since they use other logger names @@ -15,22 +18,30 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 --- a/src/main/resources/log4j2.xml +++ b/src/main/resources/log4j2.xml @@ -0,0 +0,0 @@ + + - +- ++ - + + ++ pattern="%highlightError{[%d{HH:mm:ss} %level]: %minecraftFormatting{%msg}%n%xEx{full}}" /> -@@ -0,0 +0,0 @@ + + - +- ++ - + + ++ pattern="[%d{HH:mm:ss}] [%t/%level]: %minecraftFormatting{%msg}{strip}%n%xEx{full}" /> +