2020-01-24 23:06:37 +00:00
|
|
|
From fceb95f6c30cba36961d90cf4f666003509b54a3 Mon Sep 17 00:00:00 2001
|
2018-03-08 15:08:21 +00:00
|
|
|
From: Minecrell <minecrell@minecrell.net>
|
2017-09-22 07:47:01 +00:00
|
|
|
Date: Sat, 23 Sep 2017 21:07:20 +0200
|
|
|
|
Subject: [PATCH] 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
|
|
|
|
(e.g. qualified class names) these would now also appear in the
|
|
|
|
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
|
2020-01-24 23:06:37 +00:00
|
|
|
index a8bdaaeaa..a9bb98765 100644
|
2017-09-22 07:47:01 +00:00
|
|
|
--- a/src/main/resources/log4j2.xml
|
|
|
|
+++ b/src/main/resources/log4j2.xml
|
2020-01-24 23:06:37 +00:00
|
|
|
@@ -8,7 +8,8 @@
|
2017-09-22 07:47:01 +00:00
|
|
|
<PatternLayout>
|
|
|
|
<LoggerNamePatternSelector defaultPattern="%highlightError{[%d{HH:mm:ss} %level]: [%logger] %minecraftFormatting{%msg}%n%xEx}">
|
|
|
|
<!-- Log root, Minecraft, Mojang and Bukkit loggers without prefix -->
|
|
|
|
- <PatternMatch key=",net.minecraft.,Minecraft,com.mojang."
|
|
|
|
+ <!-- Disable prefix for various plugins that bypass the plugin logger -->
|
|
|
|
+ <PatternMatch key=",net.minecraft.,Minecraft,com.mojang.,com.sk89q.,ru.tehkode.,Minecraft.AWE"
|
|
|
|
pattern="%highlightError{[%d{HH:mm:ss} %level]: %minecraftFormatting{%msg}%n%xEx}" />
|
|
|
|
</LoggerNamePatternSelector>
|
|
|
|
</PatternLayout>
|
2020-01-24 23:06:37 +00:00
|
|
|
@@ -17,7 +18,8 @@
|
2017-09-22 07:47:01 +00:00
|
|
|
<PatternLayout>
|
|
|
|
<LoggerNamePatternSelector defaultPattern="[%d{HH:mm:ss}] [%t/%level]: [%logger] %minecraftFormatting{%msg}{strip}%n">
|
|
|
|
<!-- Log root, Minecraft, Mojang and Bukkit loggers without prefix -->
|
|
|
|
- <PatternMatch key=",net.minecraft.,Minecraft,com.mojang."
|
|
|
|
+ <!-- Disable prefix for various plugins that bypass the plugin logger -->
|
|
|
|
+ <PatternMatch key=",net.minecraft.,Minecraft,com.mojang.,com.sk89q.,ru.tehkode.,Minecraft.AWE"
|
|
|
|
pattern="[%d{HH:mm:ss}] [%t/%level]: %minecraftFormatting{%msg}{strip}%n" />
|
|
|
|
</LoggerNamePatternSelector>
|
|
|
|
</PatternLayout>
|
|
|
|
--
|
2020-01-24 23:06:37 +00:00
|
|
|
2.24.0
|
2017-09-22 07:47:01 +00:00
|
|
|
|