Fix up logging and log4j configuration (#4802)

This commit is contained in:
mezz authored and GitHub committed 2018-03-17 18:41:16 -07:00
1 parent 5ace86da12
commit ae654edfc2
29 files changed
+308 -206

No files matched your search

@@ -68,7 +68,7 @@ public class ForgeVersion
@SuppressWarnings("unused")
private static String target = null;
private static final Logger log = LogManager.getLogger("ForgeVersionCheck");
private static final Logger log = LogManager.getLogger(MOD_ID + ".VersionCheck");
public static int getMajorVersion()
{
@@ -61,7 +61,7 @@ public final class UsernameCache {
private static final File saveFile = new File( /* The minecraft dir */(File) FMLInjectionData.data()[6], "usernamecache.json");
private static final Gson gson = new GsonBuilder().setPrettyPrinting().create();
private static final Logger log = LogManager.getLogger(UsernameCache.class);
private static final Logger log = LogManager.getLogger(ForgeVersion.MOD_ID + ".UsernameCache");
private UsernameCache() {}
@@ -1047,7 +1047,7 @@ public class Configuration
}
catch (IOException e)
{
FMLLog.log.error("Error while loading config.", e);
FMLLog.log.error("Error while loading config {}.", fileName, e);
}
finally
{
@@ -1108,7 +1108,7 @@ public class Configuration
}
catch (IOException e)
{
FMLLog.log.error("Error while saving config.", e);
FMLLog.log.error("Error while saving config {}.", fileName, e);
}
}