
This DOES NOT BUILD. Do not even attempt. Almost everything has been ported besides the block/item packages. Then it's a matter of testing what broke.
44 lines
960 B
Java
44 lines
960 B
Java
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(String info, Object... format)
|
|
{
|
|
if (BloodMagicAPI.isLoggingEnabled())
|
|
logger.info(info, format);
|
|
}
|
|
|
|
public void error(String error, Object... format)
|
|
{
|
|
if (BloodMagicAPI.isLoggingEnabled())
|
|
logger.info(error, format);
|
|
}
|
|
|
|
public void debug(String debug, Object... format)
|
|
{
|
|
if (BloodMagicAPI.isLoggingEnabled())
|
|
logger.info(debug, format);
|
|
}
|
|
|
|
public void fatal(String fatal, Object... format)
|
|
{
|
|
logger.fatal(fatal, format);
|
|
}
|
|
|
|
public Logger getLogger()
|
|
{
|
|
return logger;
|
|
}
|
|
}
|