/**
 * This class was created by BrassGoggledCoders modding team.
 * This class is available as part of the BoilerCraft Mod for Minecraft.
 *
 * BoilerCraft is open-source and is distributed under the MMPL v1.0 License.
 * (http://www.mod-buildcraft.com/MMPL-1.0.txt)
 *
 */
package boilerplate.common.utils;

import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * @author skysom
 *
 */
public class LoggerBoilerplate
{
	public static void log(Level level, String message)
	{
		getLogger().log(level, message);
	}

	public static void warning(String message)
	{
		log(Level.WARN, message);
	}

	public static void info(String message)
	{
		log(Level.INFO, message);
	}

	public static void fatal(String message)
	{
		log(Level.FATAL, message);
	}

	public static void error(String message)
	{
		log(Level.ERROR, message);
	}

	protected static Logger getLogger()
	{
		return LogManager.getLogger("boilerplate");
	}
}

@@ -489,16 +489,48 @@
 plate%0A%7B%0A
+%09private static Logger logger;%0A%0A
 %09public 
@@ -973,14 +973,36 @@
 %7B%0A%09%09
-return
+if (logger == null) logger =
  Log
@@ -1035,13 +1035,30 @@
 late%22);%0A
+%09%09return logger;%0A
 %09%7D%0A%7D%0A

Update LoggerBoilerplate.java