Clean up some logging + protect against negative values in Altar Recipes
This commit is contained in:
parent
43f2bdd28a
commit
61b2b293ba
6 changed files with 20 additions and 38 deletions
|
@ -12,23 +12,23 @@ public class LogHelper {
|
|||
this.logger = LogManager.getLogger(logger);
|
||||
}
|
||||
|
||||
public void info(Object info) {
|
||||
public void info(String info, Object ... format) {
|
||||
if (BloodMagicAPI.isLoggingEnabled())
|
||||
logger.info(info);
|
||||
logger.info(info, format);
|
||||
}
|
||||
|
||||
public void error(Object error) {
|
||||
public void error(String error, Object ... format) {
|
||||
if (BloodMagicAPI.isLoggingEnabled())
|
||||
logger.info(error);
|
||||
logger.info(error, format);
|
||||
}
|
||||
|
||||
public void debug(Object debug) {
|
||||
public void debug(String debug, Object ... format) {
|
||||
if (BloodMagicAPI.isLoggingEnabled())
|
||||
logger.info(debug);
|
||||
logger.info(debug, format);
|
||||
}
|
||||
|
||||
public void fatal(Object fatal) {
|
||||
logger.fatal(fatal);
|
||||
public void fatal(String fatal, Object ... format) {
|
||||
logger.fatal(fatal, format);
|
||||
}
|
||||
|
||||
public Logger getLogger() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue