mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-20 09:17:29 +07:00
Added Logger#info* methods
This commit is contained in:
parent
4101724d3d
commit
2b457e3c3a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user