2010-04-14 - Jakarta Taglibs has been retired.

For more information, please explore the Attic.

Tag reference sheet

Tag library reference for the following tag libraries:

Log Tag library

null null null null null

This is version 1.0.

  • debug Displays a debug-level message
  • dump Displays all vars in the specified scope
  • error Displays a error-level message
  • fatal Displays a fatal message, usually as the application is about to terminate
  • info Displays a info-level message
  • warn Displays a warn-level message

Required attributes are marked with a *

<log:debug>

Displays a debug-level message

Can contain:

Example


<log:debug message="this is a message"/>

<log:debug category="foo.bar" message="this is a message"/>

<log:debug category="foo.bar">
  this is a message
</log:debug>

      

Attributes

Name Description Type
category The log4j category name used to log this message to. If this is not specified then the default log4j category is used. String
exception The exception to log. If this is not specified then only the message will be logged. String
message The message to log. If this is not specified then the body of the tag is used instead. String

<log:dump>

Displays all vars in the specified scope

Can contain:

Example


<log:dump scope="page"/>
<log:dump scope="request"/>
<log:dump scope="session"/>
<log:dump scope="application"/>

      

Attributes

Name Description Type
scope* String

<log:error>

Displays a error-level message

Can contain:

Example


<log:error message="this is a message"/>

<log:error category="foo.bar" message="this is a message"/>

<log:error category="foo.bar">
  this is a message
</log:error>

      

Attributes

Name Description Type
category The log4j category name used to log this message to. If this is not specified then the default log4j category is used. String
exception The exception to log. If this is not specified then only the message will be logged. String
message The message to log. If this is not specified then the body of the tag is used instead. String

<log:fatal>

Displays a fatal message, usually as the application is about to terminate

Can contain:

Example


<log:fatal message="oh dear I think I'm about to terminate"/>

<log:fatal category="foo.bar" message="oh dear I think I'm about to terminate"/>

<log:fatal category="foo.bar">
  oh dear I think I'm about to terminate
</log:fatal>

      

Attributes

Name Description Type
category The log4j category name used to log this message to. If this is not specified then the default log4j category is used. String
exception The exception to log. If this is not specified then only the message will be logged. String
message The message to log. If this is not specified then the body of the tag is used instead. String

<log:info>

Displays a info-level message

Can contain:

Example


<log:info message="this is a message"/>

<log:info category="foo.bar" message="this is a message"/>

<log:info category="foo.bar">
  this is a message
</log:description>

      

Attributes

Name Description Type
category The log4j category name used to log this message to. If this is not specified then the default log4j category is used. String
exception The exception to log. If this is not specified then only the message will be logged. String
message The message to log. If this is not specified then the body of the tag is used instead. String

<log:warn>

Displays a warn-level message

Can contain:

Example


<log:warn message="this is a message"/>

<log:warn category="foo.bar" message="this is a message"/>

<log:warn category="foo.bar">
  this is a message
</log:warn>

      

Attributes

Name Description Type
category The log4j category name used to log this message to. If this is not specified then the default log4j category is used. String
exception The exception to log. If this is not specified then only the message will be logged. String
message The message to log. If this is not specified then the body of the tag is used instead. String