diff --git a/Spigot-Server-Patches/0172-Disable-logger-prefix-for-various-plugins-bypassing-.patch b/Spigot-Server-Patches/0172-Improve-Log4J-Configuration-Plugin-Loggers.patch similarity index 57% rename from Spigot-Server-Patches/0172-Disable-logger-prefix-for-various-plugins-bypassing-.patch rename to Spigot-Server-Patches/0172-Improve-Log4J-Configuration-Plugin-Loggers.patch index 7b9380652..5afb9562c 100644 --- a/Spigot-Server-Patches/0172-Disable-logger-prefix-for-various-plugins-bypassing-.patch +++ b/Spigot-Server-Patches/0172-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 @@ -11,26 +14,34 @@ log. Disable the logger prefix for these plugins so the messages show up correctly. diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml -index a8bdaaeaa1a9316848416f0533739b9b083ca151..a9bb987652b4b239322fb83b009ef8533eaa4555 100644 +index a8bdaaeaa1a9316848416f0533739b9b083ca151..476f4a5cbe664ddd05474cb88553018bd334a5b8 100644 --- a/src/main/resources/log4j2.xml +++ b/src/main/resources/log4j2.xml -@@ -8,7 +8,8 @@ +@@ -6,19 +6,21 @@ + + - +- ++ - + + ++ pattern="%highlightError{[%d{HH:mm:ss} %level]: %minecraftFormatting{%msg}%n%xEx{full}}" /> -@@ -17,7 +18,8 @@ + + - +- ++ - + + ++ pattern="[%d{HH:mm:ss}] [%t/%level]: %minecraftFormatting{%msg}{strip}%n%xEx{full}" /> +