package org.apache.velocity.runtime.log;

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.    
 */

import org.apache.velocity.runtime.RuntimeServices;

/**
 * Base interface that logging systems need to implement. This
 * is the blessed descendant of the old LogSystem interface.
 *
 * @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
 * @author <a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a>
 * @author <a href="mailto:nbubna@apache.org">Nathan Bubna</a>
 * @version $Id$
 */
public interface LogChute
{
    /** Prefix string for trace messages. */
    public final static String TRACE_PREFIX = " [trace] ";

    /** Prefix string for debug messages. */
    public final static String DEBUG_PREFIX = " [debug] ";

    /** Prefix string for info messages. */
    public final static String INFO_PREFIX  = "  [info] ";

    /** Prefix string for warn messages. */
    public final static String WARN_PREFIX  = "  [warn] ";

    /** Prefix string for error messages. */
    public final static String ERROR_PREFIX = " [error] ";

    /** ID for trace messages. */
    public final static int TRACE_ID = -1;

    /** ID for debug messages. */
    public final static int DEBUG_ID = 0;

    /** ID for info messages. */
    public final static int INFO_ID = 1;

    /** ID for warning messages. */
    public final static int WARN_ID = 2;

    /** ID for error messages. */
    public final static int ERROR_ID = 3;

    /**
     * Initializes this LogChute.
     * @param rs
     * @throws Exception
     */
    public void init(RuntimeServices rs) throws Exception;

    /**
     * Send a log message from Velocity.
     * @param level
     * @param message
     */
    public void log(int level, String message);

    /**
     * Send a log message from Velocity along with an exception or error
     * @param level
     * @param message
     * @param t
     */
    public void log(int level, String message, Throwable t);

    /**
     * Tell whether or not a log level is enabled.
     * @param level
     * @return True if a level is enabled.
     */
    public boolean isLevelEnabled(int level);

}

@@ -838,20 +838,16 @@
 License.
-    
 %0A */%0A%0Aim
@@ -1324,36 +1324,16 @@
  */%0A    
-public final static 
 String T
@@ -1409,36 +1409,16 @@
  */%0A    
-public final static 
 String D
@@ -1493,36 +1493,16 @@
  */%0A    
-public final static 
 String I
@@ -1577,36 +1577,16 @@
  */%0A    
-public final static 
 String W
@@ -1662,36 +1662,16 @@
  */%0A    
-public final static 
 String E
@@ -1736,36 +1736,16 @@
  */%0A    
-public final static 
 int TRAC
@@ -1794,36 +1794,16 @@
  */%0A    
-public final static 
 int DEBU
@@ -1850,36 +1850,16 @@
  */%0A    
-public final static 
 int INFO
@@ -1908,36 +1908,16 @@
  */%0A    
-public final static 
 int WARN
@@ -1968,28 +1968,8 @@
     
-public final static 
 int 
@@ -2075,31 +2075,24 @@
      */%0A    
-public 
 void init(Ru
@@ -2223,39 +2223,32 @@
 age%0A     */%0A    
-public 
 void log(int lev
@@ -2420,23 +2420,16 @@
  */%0A    
-public 
 void log
@@ -2605,23 +2605,16 @@
  */%0A    
-public 
 boolean 

Remove some superflous qualifiers and whitespace...