You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by oa...@apache.org on 2002/02/04 18:14:23 UTC

cvs commit: jakarta-commons-sandbox/services/src/java/org/apache/commons/services LogService.java ServiceManager.java

oalexeev    02/02/04 09:14:23

  Modified:    services/src/java/org/apache/commons/services
                        LogService.java ServiceManager.java
  Log:
  Patch code to support latest commons-logging package version.
  
  Revision  Changes    Path
  1.4       +5 -5      jakarta-commons-sandbox/services/src/java/org/apache/commons/services/LogService.java
  
  Index: LogService.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/services/src/java/org/apache/commons/services/LogService.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- LogService.java	21 Jan 2002 21:26:28 -0000	1.3
  +++ LogService.java	4 Feb 2002 17:14:23 -0000	1.4
  @@ -10,24 +10,24 @@
   
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogSource;
  -import org.apache.commons.logging.SimpleLog;
  +import org.apache.commons.logging.impl.SimpleLog;
   
   /** LogService uses universal logging bridge from commons-logging.
    * 
  - *  @version $Id: LogService.java,v 1.3 2002/01/21 21:26:28 craigmcc Exp $
  + *  @version $Id: LogService.java,v 1.4 2002/02/04 17:14:23 oalexeev Exp $
    *  @author Oleg V Alexeev
    */
   public class LogService extends Service {
   
           public static int DEFAULT_LOG_LEVEL =
  -            org.apache.commons.logging.SimpleLog.LOG_LEVEL_OFF;
  +            org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_OFF;
   
           protected Log log = null;
   
           protected void initLog() {
               try {
  -                LogSource.setLogImplementation( "org.apache.commons.logging.SimpleLog" );
  -                log = LogSource.makeNewLogInstance( "org.apache.commons.service.logging.SimpleLog" );
  +                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" );
  
  
  
  1.9       +5 -5      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.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ServiceManager.java	1 Feb 2002 16:32:38 -0000	1.8
  +++ ServiceManager.java	4 Feb 2002 17:14:23 -0000	1.9
  @@ -11,19 +11,19 @@
   import java.io.Serializable;
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogSource;
  -import org.apache.commons.logging.SimpleLog;
  +import org.apache.commons.logging.impl.SimpleLog;
   import org.apache.commons.digester.Digester;
   
   /** 
    *  Core class in package.
    * 
  - *  @version $Id: ServiceManager.java,v 1.8 2002/02/01 16:32:38 oalexeev Exp $
  + *  @version $Id: ServiceManager.java,v 1.9 2002/02/04 17:14:23 oalexeev Exp $
    *  @author Oleg V Alexeev
    */
   public class ServiceManager implements Serializable, ConfigObject {
   
           public static int DEFAULT_LOG_LEVEL =
  -            org.apache.commons.logging.SimpleLog.LOG_LEVEL_ALL;
  +            org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_ALL;
   
           protected EventModule eventModule = null;
   
  @@ -38,8 +38,8 @@
           // FIXME - make it more flexible
           static {
               try {
  -                LogSource.setLogImplementation( "org.apache.commons.logging.SimpleLog" );
  -                log = LogSource.makeNewLogInstance( "org.apache.commons.service.logging.SimpleLog" );
  +                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" );
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>