velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbris...@apache.org
Subject svn commit: r1768703 - /velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/LogTool.java
Date Tue, 08 Nov 2016 14:41:23 GMT
Author: cbrisson
Date: Tue Nov  8 14:41:23 2016
New Revision: 1768703

URL: http://svn.apache.org/viewvc?rev=1768703&view=rev
Log:
[tools] LogTool javadoc

Modified:
    velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/LogTool.java

Modified: velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/LogTool.java
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/LogTool.java?rev=1768703&r1=1768702&r2=1768703&view=diff
==============================================================================
--- velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/LogTool.java
(original)
+++ velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/LogTool.java
Tue Nov  8 14:41:23 2016
@@ -28,6 +28,17 @@ import org.slf4j.Logger;
  * <p>
  * This tool is used to log from within templates.
  * </p>
+ * <p>
+ * Of course, the desired log level must have been configured, using the method specific
+ * to the SLF4J implementation you are using. For instance, when using the webapp-slf4j-logger,
+ * you will use the following snippet of code in you /WEB-INF/web.xml file:
+ * <pre>
+ * &lt;context-param&gt;
+ *   &lt;param-name&gt;webapp-slf4j-logger.level&lt;/param-name&gt;
+ *   &lt;param-value&gt;debug&lt;/param-value&gt;
+ * &lt;/context-param&gt;
+ * </pre>
+ * </p>
  *
  * <p>
  * <pre>



Mime
View raw message