Defined AbstractLogger#traceEntry() and #traceEntry(String,Object...)

This commit is contained in:
Collin Smith 2020-08-28 04:28:23 -07:00
parent 055c2173e4
commit 16cf4a9572

View File

@ -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);
}