mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-20 09:17:29 +07:00
Added Logger#fatal* methods
This commit is contained in:
parent
4214696808
commit
e142308112
@ -97,6 +97,18 @@ abstract class AbstractLogger {
|
||||
logIfEnabled(Level.ERROR, formattedFactory().newMessage(message, params), getLocation());
|
||||
}
|
||||
|
||||
public final boolean fatalEnabled() {
|
||||
return enabled(Level.FATAL);
|
||||
}
|
||||
|
||||
public final void fatal(final String message, final Object... params) {
|
||||
logIfEnabled(Level.FATAL, defaultFactory().newMessage(message, params), getLocation());
|
||||
}
|
||||
|
||||
public final void fatalf(final String message, final Object... params) {
|
||||
logIfEnabled(Level.FATAL, formattedFactory().newMessage(message, params), getLocation());
|
||||
}
|
||||
|
||||
private StackTraceElement getLocation() {
|
||||
return getLocation(FQCN);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user