commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject cvs commit: jakarta-commons-sandbox/services/src/java/org/apache/commons/services ServiceManager.java
Date Sun, 10 Feb 2002 23:12:37 GMT
craigmcc    02/02/10 15:12:36

  Modified:    services PROPOSAL.html
               services/src/java/org/apache/commons/services
                        ServiceManager.java
  Log:
  Fix compile-time errors related to commons-logging caused by changes in the
  logging packaging.  Along the way, defer logger configuration to the logging
  package that is ultimately used by calling the standard factory method,
  rather than trying to preconfigure a particular implementation.
  
  Revision  Changes    Path
  1.2       +3 -2      jakarta-commons-sandbox/services/PROPOSAL.html
  
  Index: PROPOSAL.html
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/services/PROPOSAL.html,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PROPOSAL.html	17 Dec 2001 16:38:18 -0000	1.1
  +++ PROPOSAL.html	10 Feb 2002 23:12:36 -0000	1.2
  @@ -63,12 +63,12 @@
   <li>Initial Committers - The list is provided below. </li>
   
   <li>Mailing List - Discussions will take place on the general
  -<em>jakarta-commons@jakarta.apache.org</em> mailing list. To help list
  +<em>commons-dev@jakarta.apache.org</em> mailing list. To help list
   subscribers identify messages of interest, it is suggested that the
   message subject of messages about this component be prefixed with
   [Services].</li>
   
  -<li>Bugzilla - New component "Servises" under the "Commons" product
  +<li>Bugzilla - New component "Services" under the "Commons" product
   category, with appropriate version identifiers as needed.</li>
   
   <li>Jyve FAQ - New category "commons-services" (when available).</li>
  @@ -81,6 +81,7 @@
   
   <ul>
     <li>Oleg V Alexeev</li>
  +  <li>Craig McClanahan</li>
   </ul>
   
   </body>
  
  
  
  1.10      +3 -19     jakarta-commons-sandbox/services/src/java/org/apache/commons/services/ServiceManager.java
  
  Index: ServiceManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/services/src/java/org/apache/commons/services/ServiceManager.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ServiceManager.java	4 Feb 2002 17:14:23 -0000	1.9
  +++ ServiceManager.java	10 Feb 2002 23:12:36 -0000	1.10
  @@ -11,20 +11,16 @@
   import java.io.Serializable;
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogSource;
  -import org.apache.commons.logging.impl.SimpleLog;
   import org.apache.commons.digester.Digester;
   
   /** 
    *  Core class in package.
    * 
  - *  @version $Id: ServiceManager.java,v 1.9 2002/02/04 17:14:23 oalexeev Exp $
  + *  @version $Id: ServiceManager.java,v 1.10 2002/02/10 23:12:36 craigmcc Exp $
    *  @author Oleg V Alexeev
    */
   public class ServiceManager implements Serializable, ConfigObject {
   
  -        public static int DEFAULT_LOG_LEVEL =
  -            org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_ALL;
  -
           protected EventModule eventModule = null;
   
           protected ServiceModule serviceModule = null;
  @@ -33,20 +29,8 @@
   
           protected LogService logService = null;
   
  -        protected static Log log = null;
  -
  -        // FIXME - make it more flexible
  -        static {
  -            try {
  -                LogSource.setLogImplementation( "org.apache.commons.logging.impl.SimpleLog"
);
  -                log = LogSource.makeNewLogInstance( "org.apache.commons.service.logging.impl.SimpleLog"
);
  -            } catch ( Exception _e ) {
  -            }
  -            log = LogSource.makeNewLogInstance( "org.apache.commons.service.logging.default"
);
  -            if (log instanceof SimpleLog) {
  -                ((SimpleLog) log).setLevel( DEFAULT_LOG_LEVEL );
  -            }
  -        }
  +        protected static Log log =
  +            LogSource.getInstance(ServiceManager.class);
   
           public Log getLog() {
                   return log;
  
  
  

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


Mime
View raw message