incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r1303033 - /sling/trunk/contrib/scripting/freemarker/src/main/java/org/apache/sling/scripting/freemarker/FreemarkerScriptEngine.java
Date Tue, 20 Mar 2012 17:36:24 GMT
Author: justin
Date: Tue Mar 20 17:36:24 2012
New Revision: 1303033

URL: http://svn.apache.org/viewvc?rev=1303033&view=rev
Log:
SLING-2432 - switching Freemarker script engine to use Freemarker logging. Thanks to Sean
Kleinjung for the patch.

Modified:
    sling/trunk/contrib/scripting/freemarker/src/main/java/org/apache/sling/scripting/freemarker/FreemarkerScriptEngine.java

Modified: sling/trunk/contrib/scripting/freemarker/src/main/java/org/apache/sling/scripting/freemarker/FreemarkerScriptEngine.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/scripting/freemarker/src/main/java/org/apache/sling/scripting/freemarker/FreemarkerScriptEngine.java?rev=1303033&r1=1303032&r2=1303033&view=diff
==============================================================================
--- sling/trunk/contrib/scripting/freemarker/src/main/java/org/apache/sling/scripting/freemarker/FreemarkerScriptEngine.java
(original)
+++ sling/trunk/contrib/scripting/freemarker/src/main/java/org/apache/sling/scripting/freemarker/FreemarkerScriptEngine.java
Tue Mar 20 17:36:24 2012
@@ -24,12 +24,11 @@ import javax.script.ScriptEngineFactory;
 import javax.script.ScriptException;
 import javax.jcr.Node;
 
+import freemarker.log.Logger;
 import org.apache.sling.api.scripting.SlingBindings;
 import org.apache.sling.api.scripting.SlingScriptHelper;
 import org.apache.sling.scripting.api.AbstractSlingScriptEngine;
 import org.apache.sling.scripting.freemarker.wrapper.NodeModel;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 import freemarker.template.Configuration;
 import freemarker.template.Template;
@@ -39,7 +38,7 @@ import freemarker.template.Template;
  * to render a Resource in HTML.
  */
 public class FreemarkerScriptEngine extends AbstractSlingScriptEngine {
-    private static final Logger log = LoggerFactory.getLogger(FreemarkerScriptEngine.class);
+    private static final Logger log = Logger.getLogger(FreemarkerScriptEngine.class.getName());
 
     private final Configuration configuration;
 



Mime
View raw message