From dd4a2d58e7fed567f62254f3ab6ed95dbf7a6159 Mon Sep 17 00:00:00 2001 From: Minecrell Date: Fri, 22 Sep 2017 13:07:31 +0200 Subject: [PATCH] Handle plugin prefixes using Log4J diff --git a/api/src/main/java/net/md_5/bungee/api/plugin/Plugin.java b/api/src/main/java/net/md_5/bungee/api/plugin/Plugin.java index bc91208a..e85b4914 100644 --- a/api/src/main/java/net/md_5/bungee/api/plugin/Plugin.java +++ b/api/src/main/java/net/md_5/bungee/api/plugin/Plugin.java @@ -85,7 +85,7 @@ public class Plugin this.proxy = proxy; this.description = description; this.file = description.getFile(); - this.logger = new PluginLogger( this ); + this.logger = Logger.getLogger(description.getName()); // Waterfall - Handle plugin prefixes in implementation } // diff --git a/log4j/src/main/resources/log4j2.xml b/log4j/src/main/resources/log4j2.xml index 93ce3b14..3b3525f0 100644 --- a/log4j/src/main/resources/log4j2.xml +++ b/log4j/src/main/resources/log4j2.xml @@ -2,10 +2,20 @@ - + + + + + + - + + + + + + -- 2.19.1