mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-20 09:17:29 +07:00
Defined AbstractLogger#traceEntry() and #traceEntry(String,Object...)
This commit is contained in:
parent
055c2173e4
commit
16cf4a9572
@ -113,6 +113,15 @@ abstract class AbstractLogger {
|
||||
logIfEnabled(Level.FATAL, formattedFactory().newMessage(message, params));
|
||||
}
|
||||
|
||||
public final void traceEntry() {
|
||||
final StackTraceElement location = getLocation();
|
||||
logIfEnabled(Level.TRACE, defaultFactory().newMessage(location.getMethodName()), location);
|
||||
}
|
||||
|
||||
public final void traceEntry(final String message, final Object... params) {
|
||||
logIfEnabled(Level.TRACE, defaultFactory().newMessage(message, params));
|
||||
}
|
||||
|
||||
private StackTraceElement getLocation() {
|
||||
return getLocation(FQCN);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user