mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-20 09:17:29 +07:00
Added warn methods
This commit is contained in:
parent
834d44ca3b
commit
a3c99b6e66
@ -45,6 +45,10 @@ abstract class AbstractLogger {
|
||||
return enabled(Level.DEBUG);
|
||||
}
|
||||
|
||||
public final boolean warnEnabled() {
|
||||
return enabled(Level.WARN);
|
||||
}
|
||||
|
||||
public final void trace(final String message, final Object... params) {
|
||||
logIfEnabled(Level.TRACE, defaultFactory().newMessage(message, params), getLocation());
|
||||
}
|
||||
@ -53,6 +57,10 @@ abstract class AbstractLogger {
|
||||
logIfEnabled(Level.DEBUG, defaultFactory().newMessage(message, params), getLocation());
|
||||
}
|
||||
|
||||
public final void warn(final String message, final Object... params) {
|
||||
logIfEnabled(Level.WARN, defaultFactory().newMessage(message, params), getLocation());
|
||||
}
|
||||
|
||||
public final void tracef(final String message, final Object... params) {
|
||||
logIfEnabled(Level.TRACE, formattedFactory().newMessage(message, params), getLocation());
|
||||
}
|
||||
@ -61,6 +69,10 @@ abstract class AbstractLogger {
|
||||
logIfEnabled(Level.DEBUG, formattedFactory().newMessage(message, params), getLocation());
|
||||
}
|
||||
|
||||
public final void warnf(final String message, final Object... params) {
|
||||
logIfEnabled(Level.WARN, formattedFactory().newMessage(message, params), getLocation());
|
||||
}
|
||||
|
||||
private StackTraceElement getLocation() {
|
||||
return getLocation(FQCN);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user