From a70cde344f8b252d2175efca241a4a7ebdbc0d3e Mon Sep 17 00:00:00 2001 From: RoboMWM Date: Sun, 2 Oct 2016 12:21:38 -0700 Subject: [PATCH] Don't use minecraft logger Part of 1 of a zillion bad practices to fix --- src/me/ryanhamshire/GriefPrevention/GriefPrevention.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java b/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java index 00bca9f..532b4c4 100644 --- a/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java +++ b/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java @@ -73,7 +73,7 @@ public class GriefPrevention extends JavaPlugin public static GriefPrevention instance; //for logging to the console and log file - private static Logger log = Logger.getLogger("Minecraft"); + private static Logger log; //this handles data storage, like player and region data public DataStore dataStore; @@ -231,7 +231,7 @@ public class GriefPrevention extends JavaPlugin { GriefPrevention.instance.customLogger.AddEntry(entry, customLogType); } - if(!excludeFromServerLogs) log.info("GriefPrevention: " + entry); + if(!excludeFromServerLogs) log.info(entry); } public static synchronized void AddLogEntry(String entry, CustomLogEntryTypes customLogType) @@ -248,8 +248,7 @@ public class GriefPrevention extends JavaPlugin public void onEnable() { instance = this; - - AddLogEntry("Grief Prevention boot start."); + log = instance.getLogger(); this.loadConfig();