Overview | Library | Tag | Help
| FRAMES NO FRAMES

## Log4j 2 Tag Library
Tag ifEnabled

Conditional tag that evaluates its body only if the specified log level and marker are enabled.

Example:

    <log:ifEnabled level="info">
        Evaluate this content
    </log:ifEnabled>

    <log:ifEnabled logger="com.foo.bar" level="INFO" marker="${marker}">
        Evaluate this content
    </log:ifEnabled>

Tag Information
Tag Class | org.apache.logging.log4j.taglib.IfEnabledTag
TagExtraInfo Class | None
Body Content | JSP
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 | true | true | `java.lang.Object` | The name of any valid Level (TRACE, DEBUG, INFO, etc.) or an actual Level instance to check whether it is enabled. This value is case-insensitive.
marker | false | true | `org.apache.logging.log4j.Marker` | Marker data to include in the enabled check.

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.