You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by ge...@apache.org on 2001/03/19 06:19:48 UTC

cvs commit: jakarta-velocity/src/java/org/apache/velocity/runtime/log LogSystem.java

geirm       01/03/18 21:19:48

  Modified:    src/java/org/apache/velocity/runtime/log LogSystem.java
  Log:
  Boiled the interface down to 1 method and 4 level constants.  Rest was removed and pulled back
  into Runtime or RuntimeConstants
  
  Revision  Changes    Path
  1.2       +13 -23    jakarta-velocity/src/java/org/apache/velocity/runtime/log/LogSystem.java
  
  Index: LogSystem.java
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/log/LogSystem.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LogSystem.java	2001/03/12 07:19:53	1.1
  +++ LogSystem.java	2001/03/19 05:19:48	1.2
  @@ -25,7 +25,7 @@
    *    Alternately, this acknowlegement may appear in the software itself,
    *    if and wherever such third-party acknowlegements normally appear.
    *
  - * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
  + * 4. The names "The Jakarta Project", "Velocity", and "Apache Software
    *    Foundation" must not be used to endorse or promote products derived
    *    from this software without prior written permission. For written
    *    permission, please contact apache@apache.org.
  @@ -58,44 +58,34 @@
    * Base interface that Logging systems need to implement.
    *
    * @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
  - * @version $Id: LogSystem.java,v 1.1 2001/03/12 07:19:53 jon Exp $
  + * @author <a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a>
  + * @version $Id: LogSystem.java,v 1.2 2001/03/19 05:19:48 geirm Exp $
    */
   public interface LogSystem
   {
       public final static boolean DEBUG_ON = true;
   
  -    /** 
  -     * Prefix for warning messages.
  +    /**
  +     * Prefix for debug messages.
        */
  -    public final static String WARN  = "  [warn] ";
  -    public final static int WARN_ID = 0;
  +    public final static int DEBUG_ID = 0;
   
       /** 
        * Prefix for info messages.
        */
  -    public final static String INFO  = "  [info] ";
       public final static int INFO_ID = 1;
       
       /** 
  -     * Prefix for debug messages.
  +     * Prefix for warning messages.
        */
  -    public final static String DEBUG = " [debug] ";
  -    public final static int DEBUG_ID = 2;
  -    
  +    public final static int WARN_ID = 2;
  +
       /** 
        * Prefix for error messages.
        */
  -    public final static String ERROR = " [error] ";
       public final static int ERROR_ID = 3;
  +   
  +    public void logVelocityMessage(  int level, String messsage);
  +   
  +}
   
  -    public void init(String logFile) throws Exception;
  -    
  -    public void info (Object messsage);
  -    public void error (Object messsage);
  -    public void debug (Object messsage);
  -    public void warn (Object messsage);
  -    public void log (int type, Object messsage);
  -    
  -    public boolean getStackTrace();
  -    public void setStackTrace(boolean value);
  -}
  \ No newline at end of file