/** * Log the given exception at warn level, provided that warn logging has been activated through the {@link * #setWarnLogCategory "warnLogCategory"} property. * * <p>Calls {@link #buildLogMessage} in order to determine the concrete message to log. Always passes the full * exception to the logger. * * @param ex the exception that got thrown during handler execution * @param messageContext current message context request * @see #setWarnLogCategory * @see #buildLogMessage * @see org.apache.commons.logging.Log#warn(Object, Throwable) */ protected void logException(Exception ex, MessageContext messageContext) { if (this.warnLogger != null && this.warnLogger.isWarnEnabled()) { this.warnLogger.warn(buildLogMessage(ex, messageContext), ex); } }
/** * Log the given exception at warn level, provided that warn logging has been activated through the {@link * #setWarnLogCategory "warnLogCategory"} property. * * <p>Calls {@link #buildLogMessage} in order to determine the concrete message to log. Always passes the full * exception to the logger. * * @param ex the exception that got thrown during handler execution * @param messageContext current message context request * @see #setWarnLogCategory * @see #buildLogMessage * @see org.apache.commons.logging.Log#warn(Object, Throwable) */ protected void logException(Exception ex, MessageContext messageContext) { if (this.warnLogger != null && this.warnLogger.isWarnEnabled()) { this.warnLogger.warn(buildLogMessage(ex, messageContext), ex); } }
/** * Log the given exception at warn level, provided that warn logging has been activated through the {@link * #setWarnLogCategory "warnLogCategory"} property. * * <p>Calls {@link #buildLogMessage} in order to determine the concrete message to log. Always passes the full * exception to the logger. * * @param ex the exception that got thrown during handler execution * @param messageContext current message context request * @see #setWarnLogCategory * @see #buildLogMessage * @see org.apache.commons.logging.Log#warn(Object, Throwable) */ protected void logException(Exception ex, MessageContext messageContext) { if (this.warnLogger != null && this.warnLogger.isWarnEnabled()) { this.warnLogger.warn(buildLogMessage(ex, messageContext), ex); } }
/** * Log the given exception at warn level, provided that warn logging has been activated through the {@link * #setWarnLogCategory "warnLogCategory"} property. * <p/> * Calls {@link #buildLogMessage} in order to determine the concrete message to log. Always passes the full * exception to the logger. * * @param ex the exception that got thrown during handler execution * @param messageContext current message context request * @see #setWarnLogCategory * @see #buildLogMessage * @see org.apache.commons.logging.Log#warn(Object, Throwable) */ protected void logException(Exception ex, MessageContext messageContext) { if (this.warnLogger != null && this.warnLogger.isWarnEnabled()) { this.warnLogger.warn(buildLogMessage(ex, messageContext), ex); } }