Log4j 2 Tag Library
Tag ifEnabled

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

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

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

Tag Information
Tag Classorg.apache.logging.log4j.taglib.IfEnabledTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

loggerfalsetruejava.lang.ObjectThe name or instance of the Logger to use to override the default Logger for this JSP.
leveltruetruejava.lang.ObjectThe 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.
markerfalsetrueorg.apache.logging.log4j.MarkerMarker data to include in the enabled check.

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.