Overview | Library | Tag | Help
| FRAMES NO FRAMES

## 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 Class | org.apache.logging.log4j.taglib.CatchingTag
TagExtraInfo Class | None
Body Content | empty
Display Name | None

Attributes
Name | Required | Request-time | Type | Description
logger | false | true | `java.lang.Object` | The name or instance of the Logger to use to override the default Logger for this JSP.
level | false | true | `java.lang.Object` | The 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.
exception | true | true | `java.lang.Throwable` | The exception that should be logged.

Variables
| No Variables Defined.

Overview | Library | Tag | Help
| FRAMES NO FRAMES

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.