Log4j 2 Tag Library
Tag catching

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

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

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

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.

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.