Added Logger#info* methods

This commit is contained in:
Collin Smith 2020-08-27 01:31:51 -07:00
parent 4101724d3d
commit 2b457e3c3a

View File

@ -61,6 +61,18 @@ abstract class AbstractLogger {
logIfEnabled(Level.DEBUG, formattedFactory().newMessage(message, params), getLocation());
}
public final boolean infoEnabled() {
return enabled(Level.INFO);
}
public final void info(final String message, final Object... params) {
logIfEnabled(Level.INFO, defaultFactory().newMessage(message, params), getLocation());
}
public final void infof(final String message, final Object... params) {
logIfEnabled(Level.INFO, formattedFactory().newMessage(message, params), getLocation());
}
public final boolean warnEnabled() {
return enabled(Level.WARN);
}