SLF4J Taglib
The taglib is based on the Jakarta Commons Log Taglib by Joseph Ottinger and James Strachan and is meant to be a drop-in replacement for it (with the exception that FatalTag is not supported).
Status
The taglib is currently fully functional but has not yet been fully tested in a production environment. Let us know if you have used it in production (including what container/JRE/OS is used)!
Usage
- Add slf4j-taglib.jar to your webapp (in /WEB-INF/lib). You will also need the relevant SLF4J jars.
- In the JSP:
-
Declare the taglib
<%@ taglib prefix="log" uri="http://www.slf4j.org/taglib/tld" %>
- Use the tags. For example
<log:debug category="foo.bar">this is a debug message</log:debug>
-
Declare the taglib