Rewrite is Go!

Just moving over all my changes from my fork
This commit is contained in:
Nick 2015-10-29 20:22:14 -07:00
parent 8bdd1f8b8f
commit e3d4afa123
973 changed files with 3313 additions and 82171 deletions

View file

@ -0,0 +1,37 @@
package WayofTime.alchemicalWizardry.api.util.helper;
import WayofTime.alchemicalWizardry.api.AlchemicalWizardryAPI;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class LogHelper {
private Logger logger;
public LogHelper(String logger) {
this.logger = LogManager.getLogger(logger);
}
public void info(Object info) {
if (AlchemicalWizardryAPI.isLoggingEnabled())
logger.info(info);
}
public void error(Object error) {
if (AlchemicalWizardryAPI.isLoggingEnabled())
logger.info(error);
}
public void debug(Object debug) {
if (AlchemicalWizardryAPI.isLoggingEnabled())
logger.info(debug);
}
public void fatal(Object fatal) {
logger.fatal(fatal);
}
public Logger getLogger() {
return logger;
}
}