package net.teamio.taam;

import org.apache.logging.log4j.*;

public final class Log {

	public static final Logger LOGGER = LogManager.getLogger(Taam.MOD_ID);
	
	public static void warn(String msg){
		LOGGER.warn(msg);
	}

	public static void error(String msg){
		LOGGER.error(msg);
	}

	public static void error(String msg, Throwable e){
		LOGGER.error(msg, e);
	}
	
	public static void info(String msg){
		LOGGER.info(msg);
	}
	
	public static void debug(String msg){
		if(Config.debug) {
			LOGGER.info(msg);
		} else {
			LOGGER.debug(msg);
		}
	}
	
	private Log(){
	}
	
}
@@ -220,66 +220,246 @@
 %0A%09%7D%0A
-%0A%09public static void error(String msg)%7B%0A%09%09LOGGER.error(msg
+%09%0A%09public static void warn(String msg, Object... params)%7B%0A%09%09LOGGER.warn(msg, params);%0A%09%7D%0A%0A%09public static void error(String msg)%7B%0A%09%09LOGGER.error(msg);%0A%09%7D%0A%09%0A%09public static void error(String msg, Object... params)%7B%0A%09%09LOGGER.error(msg, params
 );%0A%09
@@ -597,32 +597,121 @@
 info(msg);%0A%09%7D%0A%09%0A
+%09public static void info(String msg, Object... params)%7B%0A%09%09LOGGER.info(msg, params);%0A%09%7D%0A%09%0A
 %09public static v
@@ -817,16 +817,173 @@
 %09%7D%0A%09%7D%0A%09%0A
+%09public static void debug(String msg, Object... params)%7B%0A%09%09if(Config.debug) %7B%0A%09%09%09LOGGER.info(msg, params);%0A%09%09%7D else %7B%0A%09%09%09LOGGER.debug(msg, params);%0A%09%09%7D%0A%09%7D%0A%09%0A
 %09private

Add parametrized logging