Refactor everything to WayofTime.bloodmagic.*

This commit is contained in:
Nick 2015-11-02 12:39:44 -08:00
parent 46742a73d1
commit 096ba02450
771 changed files with 566 additions and 573 deletions

View file

@ -0,0 +1,37 @@
package WayofTime.bloodmagic.api.util.helper;
import WayofTime.bloodmagic.api.BloodMagicAPI;
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 (BloodMagicAPI.isLoggingEnabled())
logger.info(info);
}
public void error(Object error) {
if (BloodMagicAPI.isLoggingEnabled())
logger.info(error);
}
public void debug(Object debug) {
if (BloodMagicAPI.isLoggingEnabled())
logger.info(debug);
}
public void fatal(Object fatal) {
logger.fatal(fatal);
}
public Logger getLogger() {
return logger;
}
}