Log4j 2 Tag Library
Tag warn


Equivalent of org.apache.logging.log4j.Logger#warn(). This tag has dynamic attributes enabled. You may specify any number of arbitrary attributes whose values will be substituted in the String message. The "message" must be a String for this to work correctly. See the Log4j 2 manual for more information about message parameters and substitution. Only attribute values are used; attribute names are ignored.

Example:
<log:warn message="Log this message." />
<log:warn logger="com.foo.bar" message="${objectToLog}" exception="${exception}"
          marker="${marker}" />
<log:warn logger="com.foo.bar" exception="${exception}" marker="${marker}">
    Log this message
</log:warn>
    


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

Attributes
NameRequiredRequest-timeTypeDescription
loggerfalsetruejava.lang.ObjectThe name or instance of the Logger to use to override the default Logger for this JSP.
messagefalsetruejava.lang.ObjectThe message that should be logged. May be a String, Object, or org.apache.logging.log4j.message.Message. Either this attribute or body content are required.
markerfalsetrueorg.apache.logging.log4j.MarkerOptional marker data to include in this logging event.
exceptionfalsetruejava.lang.ThrowableOptional 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.