Log4j 2 Tag Library
Tag catching


Equivalent of org.apache.logging.log4j.Logger#catching().

Example:
<c:catch var="myException">
    <%= 5 / 0 %>
</c:catch>
<c:if test="${myException != null}">
    <log:catching exception="${myException}" />
</c:if>
    


Tag Information
Tag Classorg.apache.logging.log4j.taglib.CatchingTag
TagExtraInfo ClassNone
Body Contentempty
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
loggerfalsetruejava.lang.ObjectThe name or instance of the Logger to use to override the default Logger for this JSP.
levelfalsetruejava.lang.ObjectThe name of any valid level (TRACE, DEBUG, INFO, etc.) or an actual Level instance to log this at. This value is case-insensitive and defaults to ERROR for this tag.
exceptiontruetruejava.lang.ThrowableThe exception that should be logged.

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.