Don’t log to the root logger.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 5 Nov 2014 06:07:23 +0000 (07:07 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 22 Nov 2014 11:37:03 +0000 (12:37 +0100)
src/main/java/net/pterodactylus/sone/main/SonePlugin.java

index 957103b..f6fc60a 100644 (file)
@@ -87,6 +87,7 @@ public class SonePlugin implements FredPlugin, FredPluginFCP, FredPluginL10n, Fr
        static {
                /* initialize logging. */
                Logger soneLogger = getLogger("Sone");
+               soneLogger.setUseParentHandlers(false);
                soneLogger.addHandler(new Handler() {
                        @Override
                        public void publish(LogRecord logRecord) {