You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by nb...@apache.org on 2007/03/22 19:20:31 UTC

svn commit: r521395 - /velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/log/LogSystemCommonsLog.java

Author: nbubna
Date: Thu Mar 22 11:20:30 2007
New Revision: 521395

URL: http://svn.apache.org/viewvc?view=rev&rev=521395
Log:
replace setVelocityEngine() method for full backwards compatibility

Modified:
    velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/log/LogSystemCommonsLog.java

Modified: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/log/LogSystemCommonsLog.java
URL: http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/log/LogSystemCommonsLog.java?view=diff&rev=521395&r1=521394&r2=521395
==============================================================================
--- velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/log/LogSystemCommonsLog.java (original)
+++ velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/log/LogSystemCommonsLog.java Thu Mar 22 11:20:30 2007
@@ -19,6 +19,8 @@
  * under the License.
  */
 
+import org.apache.velocity.app.VelocityEngine;
+
 /**
  * Redirects commons-logging messages to Velocity's LogSystem.
  *
@@ -31,4 +33,13 @@
  * @deprecated Use LogChuteCommonsLog instead
  * @version $Id$
  */
-public class LogSystemCommonsLog extends LogChuteCommonsLog {}
+public class LogSystemCommonsLog extends LogChuteCommonsLog
+{
+    /**
+     * @deprecated Use LogChuteCommonsLog.setVelocityLog(Log target) instead
+     */
+    public static void setVelocityEngine(VelocityEngine target)
+    {
+        setVelocityLog(target.getLog());
+    }
+}