/** * Logs exiting from a method with the result and location information. * * @param fqcn The fully qualified class name of the <b>caller</b>. * @param <R> The type of the parameter and object being returned. * @param result The result being returned from the method call. * @return the return value passed to this method. */ protected <R> R exit(final String fqcn, final R result) { if (isEnabled(Level.TRACE, EXIT_MARKER, (CharSequence) null, null)) { logMessageSafely(fqcn, Level.TRACE, EXIT_MARKER, exitMsg(null, result), null); } return result; }
/** * Logs exiting from a method with the result and location information. * * @param fqcn The fully qualified class name of the <b>caller</b>. * @param <R> The type of the parameter and object being returned. * @param result The result being returned from the method call. * @return the return value passed to this method. */ protected <R> R exit(final String fqcn, final String format, final R result) { if (isEnabled(Level.TRACE, EXIT_MARKER, (CharSequence) null, null)) { logMessageSafely(fqcn, Level.TRACE, EXIT_MARKER, exitMsg(format, result), null); } return result; }
/** * Logs exiting from a method with the result and location information. * * @param fqcn The fully qualified class name of the <b>caller</b>. * @param <R> The type of the parameter and object being returned. * @param result The result being returned from the method call. * @return the return value passed to this method. */ protected <R> R exit(final String fqcn, final String format, final R result) { logIfEnabled(fqcn, Level.TRACE, EXIT_MARKER, exitMsg(format, result), null); return result; }
/** * Logs exiting from a method with the result and location information. * * @param fqcn The fully qualified class name of the <b>caller</b>. * @param <R> The type of the parameter and object being returned. * @param result The result being returned from the method call. * @return the return value passed to this method. */ protected <R> R exit(final String fqcn, final R result) { logIfEnabled(fqcn, Level.TRACE, EXIT_MARKER, exitMsg(null, result), null); return result; }