Update to the deprecations declared  in logkit v1.0
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/velocity/trunk@75428 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/java/org/apache/velocity/runtime/log/AvalonLogSystem.java b/src/java/org/apache/velocity/runtime/log/AvalonLogSystem.java
index 587f6a7..27a4309 100644
--- a/src/java/org/apache/velocity/runtime/log/AvalonLogSystem.java
+++ b/src/java/org/apache/velocity/runtime/log/AvalonLogSystem.java
@@ -62,7 +62,7 @@
 import org.apache.log.Logger;
 import org.apache.log.Hierarchy;
 import org.apache.log.LogTarget;
-import org.apache.log.output.FileOutputLogTarget;
+import org.apache.log.output.io.FileTarget;
 
 import org.apache.velocity.util.StringUtils;
 
@@ -74,7 +74,7 @@
  *
  * @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
  * @author <a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a>
- * @version $Id: AvalonLogSystem.java,v 1.9 2001/08/20 11:44:49 geirm Exp $
+ * @version $Id: AvalonLogSystem.java,v 1.10 2001/11/09 00:57:09 geirm Exp $
  */
 public class AvalonLogSystem implements LogSystem
 {
@@ -145,15 +145,15 @@
     public void init(String logFile)
         throws Exception
     {
-        FileOutputLogTarget target = new FileOutputLogTarget();
-        File logFileLocation = new File (logFile);
-        
-        logPath = logFileLocation.getAbsolutePath();
 
-        target.setFilename( logPath );
-        target.setFormatter(new VelocityFormatter());
-        target.setFormat("%{time} %{message}\\n%{throwable}" );
-                
+	/*
+	 *  make our FileTarget.  Note we are going to keep the 
+	 *  default behavior of not appending...
+	 */
+        FileTarget target = new FileTarget( new File( logFile), 
+					    false, 
+					    new VelocityFormatter("%{time} %{message}\\n%{throwable}" ) );
+       
         /*
          *  use the toString() of RuntimeServices to make a unique logger
          */
diff --git a/src/java/org/apache/velocity/runtime/log/VelocityFormatter.java b/src/java/org/apache/velocity/runtime/log/VelocityFormatter.java
index 5aae092..b87e2b0 100644
--- a/src/java/org/apache/velocity/runtime/log/VelocityFormatter.java
+++ b/src/java/org/apache/velocity/runtime/log/VelocityFormatter.java
@@ -59,6 +59,11 @@
 
 public class VelocityFormatter extends PatternFormatter
 {
+    public VelocityFormatter( String format )
+    {
+	super( format );
+    }
+    
     /**
      * Utility method to format time.
      *