commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject cvs commit: jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs VfsLog.java
Date Mon, 21 Jun 2004 11:08:23 GMT
imario      2004/06/21 04:08:23

  Modified:    vfs/src/java/org/apache/commons/vfs VfsLog.java
  Log:
  added missing log methods
  
  Revision  Changes    Path
  1.4       +107 -2    jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/VfsLog.java
  
  Index: VfsLog.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/VfsLog.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- VfsLog.java	21 May 2004 20:54:34 -0000	1.3
  +++ VfsLog.java	21 Jun 2004 11:08:23 -0000	1.4
  @@ -21,7 +21,7 @@
    * This class is to keep the old logging behaviour (for ant-task) and to be able to
    * correctly use commons-logging.<br>
    * I hope i could remove it sometimes.
  - * 
  + *
    * @author <a href="mailto:imario@apache.org">Mario Ivankovits</a>
    * @version $Revision$ $Date$
    */
  @@ -74,6 +74,111 @@
           else if (commonslog != null)
           {
               commonslog.debug(message);
  +        }
  +    }
  +
  +    /**
  +     * debug
  +     */
  +    public static void debug(Log vfslog, Log commonslog, String message, Throwable t)
  +    {
  +        if (vfslog != null)
  +        {
  +            vfslog.debug(message, t);
  +        }
  +        else if (commonslog != null)
  +        {
  +            commonslog.debug(message, t);
  +        }
  +    }
  +
  +    /**
  +     * info
  +     */
  +    public static void info(Log vfslog, Log commonslog, String message, Throwable t)
  +    {
  +        if (vfslog != null)
  +        {
  +            vfslog.info(message, t);
  +        }
  +        else if (commonslog != null)
  +        {
  +            commonslog.info(message, t);
  +        }
  +    }
  +
  +    /**
  +     * info
  +     */
  +    public static void info(Log vfslog, Log commonslog, String message)
  +    {
  +        if (vfslog != null)
  +        {
  +            vfslog.info(message);
  +        }
  +        else if (commonslog != null)
  +        {
  +            commonslog.info(message);
  +        }
  +    }
  +
  +    /**
  +     * error
  +     */
  +    public static void error(Log vfslog, Log commonslog, String message, Throwable t)
  +    {
  +        if (vfslog != null)
  +        {
  +            vfslog.error(message, t);
  +        }
  +        else if (commonslog != null)
  +        {
  +            commonslog.error(message, t);
  +        }
  +    }
  +
  +    /**
  +     * error
  +     */
  +    public static void error(Log vfslog, Log commonslog, String message)
  +    {
  +        if (vfslog != null)
  +        {
  +            vfslog.error(message);
  +        }
  +        else if (commonslog != null)
  +        {
  +            commonslog.error(message);
  +        }
  +    }
  +
  +    /**
  +     * fatal
  +     */
  +    public static void fatal(Log vfslog, Log commonslog, String message, Throwable t)
  +    {
  +        if (vfslog != null)
  +        {
  +            vfslog.fatal(message, t);
  +        }
  +        else if (commonslog != null)
  +        {
  +            commonslog.fatal(message, t);
  +        }
  +    }
  +
  +    /**
  +     * fatal
  +     */
  +    public static void fatal(Log vfslog, Log commonslog, String message)
  +    {
  +        if (vfslog != null)
  +        {
  +            vfslog.fatal(message);
  +        }
  +        else if (commonslog != null)
  +        {
  +            commonslog.fatal(message);
           }
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message