incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ran...@apache.org
Subject cvs commit: incubator-ftpserver/src/java/org/apache/ftpserver/ssl Ssl.java
Date Thu, 06 Oct 2005 06:01:51 GMT
rana_b      2005/10/05 23:01:51

  Modified:    src/java/org/apache/ftpserver/ssl Ssl.java
  Log:
  commons-logging used
  
  Revision  Changes    Path
  1.3       +8 -7      incubator-ftpserver/src/java/org/apache/ftpserver/ssl/Ssl.java
  
  Index: Ssl.java
  ===================================================================
  RCS file: /home/cvs/incubator-ftpserver/src/java/org/apache/ftpserver/ssl/Ssl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Ssl.java	4 Oct 2005 07:28:02 -0000	1.2
  +++ Ssl.java	6 Oct 2005 06:01:50 -0000	1.3
  @@ -32,9 +32,10 @@
   import javax.net.ssl.SSLSocketFactory;
   import javax.net.ssl.TrustManagerFactory;
   
  +import org.apache.commons.logging.Log;
  +import org.apache.commons.logging.LogFactory;
   import org.apache.ftpserver.ftplet.Configuration;
   import org.apache.ftpserver.ftplet.FtpException;
  -import org.apache.ftpserver.ftplet.Logger;
   import org.apache.ftpserver.interfaces.ISsl;
   import org.apache.ftpserver.util.IoUtils;
   
  @@ -48,7 +49,7 @@
   public 
   class Ssl implements ISsl {
       
  -    private Logger m_logger; 
  +    private Log m_log;
       
       private String m_keystoreFile;
       private String m_keystorePass;
  @@ -67,10 +68,10 @@
       
       
       /**
  -     * Set logger.
  +     * Set the log actory.
        */
  -    public void setLogger(Logger logger) {
  -        m_logger = logger;
  +    public void setLogFactory(LogFactory factory) {
  +        m_log = factory.getInstance(getClass());
       }
       
       /**
  @@ -113,7 +114,7 @@
               m_sslContextMap = new HashMap();
           }
           catch(Exception ex) {
  -            m_logger.warn("Ssl.configure()", ex);
  +            m_log.fatal("Ssl.configure()", ex);
               throw new FtpException("Ssl.configure()", ex);
           }
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message