avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosu...@apache.org
Subject cvs commit: avalon-excalibur/logger/src/test/org/apache/avalon/excalibur/logger/test LogKitManagementTest.java LogKitManagementTest.xtest LogKitManagementTestCase.java LogKitManagementTestCase.xtest LogKitTestComponent.java LogKitTestComponentImpl.java
Date Wed, 10 Mar 2004 13:54:52 GMT
leosutic    2004/03/10 05:54:51

  Modified:    logger   project.xml
  Added:       logger/src/java/org/apache/avalon/excalibur/logger
                        AbstractLoggerManager.java
                        ConsoleLoggerManager.java DefaultLoggerManager.java
                        DefaultLogKitManager.java
                        DefaultLogTargetFactoryManager.java
                        DefaultLogTargetManager.java Facade.java
                        LoggerLoggerManager.java LoggerManager.java
                        LogKitLoggerManager.java LogKitManageable.java
                        LogKitManager.java LogTargetFactory.java
                        LogTargetFactoryManageable.java
                        LogTargetFactoryManager.java LogTargetManager.java
                        Resources.properties ServletLogger.java
                        SimpleLogKitManager.java
               logger/src/java/org/apache/avalon/excalibur/logger/decorator
                        CachingDecorator.java LoggerManagerDecorator.java
                        LogToSelfDecorator.java
                        OverrideDefaultDecorator.java PrefixDecorator.java
               logger/src/java/org/apache/avalon/excalibur/logger/factory
                        AbstractTargetFactory.java
                        AsyncLogTargetFactory.java
                        DatagramTargetFactory.java FileTargetFactory.java
                        FormatterFactory.java JDBCTargetFactory.java
                        JMSTargetFactory.java LF5TargetFactory.java
                        PriorityFilterTargetFactory.java
                        ServletTargetFactory.java SMTPTargetFactory.java
                        SocketTargetFactory.java StreamTargetFactory.java
               logger/src/java/org/apache/avalon/excalibur/logger/log4j
                        Log4JAdapter.java Log4JConfAdapter.java
               logger/src/java/org/apache/avalon/excalibur/logger/logkit
                        ErrorHandlerAdapter.java LogKitAdapter.java
                        LogKitConfHelper.java LogKitLoggerHelper.java
               logger/src/java/org/apache/avalon/excalibur/logger/util
                        AvalonTee.java LoggerManagerTee.java
                        LoggerSwitch.java LoggerUtil.java
               logger/src/test/org/apache/avalon/excalibur/logger/test
                        LogKitManagementTest.java
                        LogKitManagementTest.xtest
                        LogKitManagementTestCase.java
                        LogKitManagementTestCase.xtest
                        LogKitTestComponent.java
                        LogKitTestComponentImpl.java
  Log:
  Reorganized to standard maven structure.
  
  Revision  Changes    Path
  1.6       +15 -10    avalon-excalibur/logger/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/logger/project.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- project.xml	26 Feb 2004 14:55:23 -0000	1.5
  +++ project.xml	10 Mar 2004 13:54:49 -0000	1.6
  @@ -21,7 +21,7 @@
   
       <name>excalibur-logger</name>
       <id>excalibur-logger</id>
  -    <currentVersion>1.1</currentVersion>
  +    <currentVersion>1.1.1-dev</currentVersion>
       <inceptionYear>1997</inceptionYear>
       <shortDescription>Container utility for implementing LogEnabled/Loggable support.</shortDescription>
       <description>
  @@ -34,15 +34,13 @@
       </description>
   
       <build>
  -        <sourceDirectory>${basedir}/api/src/java</sourceDirectory>
  -        <!-- The other paths are added in maven.xml - yes it is ugly, but it will
  -        have to do for now... I'll get some restructuring done *later*. (leosutic@apache.org)
-->
  +        <sourceDirectory>${basedir}/src/java</sourceDirectory>
           
           <unitTest>
               <includes><include>**/*TestCase.class</include></includes>
               <resources>
                   <resource>
  -                    <directory>${basedir}/logkit/src/test</directory>
  +                    <directory>${basedir}/src/test</directory>
                   </resource>
               </resources>
           </unitTest>
  @@ -64,10 +62,12 @@
               <id>servletapi</id>
               <version>2.2</version>
           </dependency>
  -        <!--<dependency>
  -            <id>jdbc</id>
  -            <version>download from sun</version>
  -        </dependency>-->
  +        <!-- Download from Sun.
  +        <dependency>
  +            <id>j2ee</id>
  +            <version>1.3</version>
  +        </dependency>
  +        -->
           <dependency>
               <id>log4j</id>
               <version>1.2.7</version>
  @@ -82,6 +82,11 @@
               <id>jms</id>
               <version>1.1</version>
           </dependency>
  +        
  +        <dependency>
  +            <id>xml-apis</id>
  +            <version>2.0.2</version>
  +        </dependency>
   
           <dependency>
               <!-- testing only -->
  @@ -94,7 +99,7 @@
               <id>excalibur-component</id>
               <version>1.2</version>
           </dependency>
  -       
  +               
           <dependency>
               <!-- testing only -->
               <id>excalibur-testcase</id>
  
  
  
  1.5       +18 -54    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/AbstractLoggerManager.java
  
  
  
  
  1.1                  avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/ConsoleLoggerManager.java
  
  Index: ConsoleLoggerManager.java
  ===================================================================
  /* 
   * Copyright 2002-2004 The Apache Software Foundation
   * Licensed  under the  Apache License,  Version 2.0  (the "License");
   * you may not use  this file  except in  compliance with the License.
   * You may obtain a copy of the License at 
   * 
   *   http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed  under the  License is distributed on an "AS IS" BASIS,
   * WITHOUT  WARRANTIES OR CONDITIONS  OF ANY KIND, either  express  or
   * implied.
   * 
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.avalon.excalibur.logger;
  
  import org.apache.avalon.framework.logger.ConsoleLogger;
  import org.apache.avalon.framework.logger.Logger;
  
  /**
   * This is a very simple logger manager for debugging purpose
   * that uses always the ConsoleLogger
   *
   * @author <a href="mailto:dev@avalon.apache.org">Avalon Development Team</a>
   * @version CVS $Revision: 1.1 $ $Date: 2004/03/10 13:54:49 $
   */
  public class ConsoleLoggerManager implements LoggerManager
  {
  
      protected Logger m_logger;
      
      /**
       * Constructor
       */
      public ConsoleLoggerManager() 
      {
          m_logger = new ConsoleLogger();
      }
      
      /* (non-Javadoc)
       * @see org.apache.avalon.excalibur.logger.LoggerManager#getDefaultLogger()
       */
      public Logger getDefaultLogger() 
      {
          return m_logger;
      }
      
      /* (non-Javadoc)
       * @see org.apache.avalon.excalibur.logger.LoggerManager#getLoggerForCategory(java.lang.String)
       */
      public Logger getLoggerForCategory(String categoryName) 
      {
          return m_logger;
      }
  }
  
  
  
  1.9       +18 -51    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/DefaultLoggerManager.java
  
  
  
  
  1.12      +18 -51    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/DefaultLogKitManager.java
  
  
  
  
  1.15      +18 -51    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/DefaultLogTargetFactoryManager.java
  
  
  
  
  1.14      +18 -51    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/DefaultLogTargetManager.java
  
  
  
  
  1.3       +16 -49    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/Facade.java
  
  
  
  
  1.7       +17 -50    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/LoggerLoggerManager.java
  
  
  
  
  1.9       +21 -54    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/LoggerManager.java
  
  
  
  
  1.21      +16 -52    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/LogKitLoggerManager.java
  
  
  
  
  1.8       +18 -51    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/LogKitManageable.java
  
  
  
  
  1.7       +18 -51    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/LogKitManager.java
  
  
  
  
  1.7       +18 -51    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/LogTargetFactory.java
  
  
  
  
  1.7       +18 -51    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/LogTargetFactoryManageable.java
  
  
  
  
  1.7       +18 -51    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/LogTargetFactoryManager.java
  
  
  
  
  1.7       +18 -51    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/LogTargetManager.java
  
  
  
  
  1.4       +17 -0     avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/Resources.properties
  
  
  
  
  1.5       +17 -50    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/ServletLogger.java
  
  
  
  
  1.11      +17 -51    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/SimpleLogKitManager.java
  
  
  
  
  1.3       +18 -54    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/decorator/CachingDecorator.java
  
  
  
  
  1.4       +18 -51    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/decorator/LoggerManagerDecorator.java
  
  
  
  
  1.4       +18 -51    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/decorator/LogToSelfDecorator.java
  
  
  
  
  1.3       +18 -51    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/decorator/OverrideDefaultDecorator.java
  
  
  
  
  1.3       +18 -54    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/decorator/PrefixDecorator.java
  
  
  
  
  1.8       +18 -51    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/factory/AbstractTargetFactory.java
  
  
  
  
  1.8       +18 -51    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/factory/AsyncLogTargetFactory.java
  
  
  
  
  1.9       +17 -50    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/factory/DatagramTargetFactory.java
  
  
  
  
  1.13      +22 -49    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/factory/FileTargetFactory.java
  
  
  
  
  1.9       +17 -48    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/factory/FormatterFactory.java
  
  
  
  
  1.10      +16 -49    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/factory/JDBCTargetFactory.java
  
  
  
  
  1.7       +16 -49    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/factory/JMSTargetFactory.java
  
  
  
  
  1.8       +16 -49    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/factory/LF5TargetFactory.java
  
  
  
  
  1.9       +16 -49    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/factory/PriorityFilterTargetFactory.java
  
  
  
  
  1.10      +16 -49    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/factory/ServletTargetFactory.java
  
  
  
  
  1.14      +16 -49    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/factory/SMTPTargetFactory.java
  
  
  
  
  1.11      +15 -48    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/factory/SocketTargetFactory.java
  
  
  
  
  1.10      +16 -49    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/factory/StreamTargetFactory.java
  
  
  
  
  1.4       +18 -52    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/log4j/Log4JAdapter.java
  
  
  
  
  1.4       +18 -52    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/log4j/Log4JConfAdapter.java
  
  
  
  
  1.3       +16 -49    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/logkit/ErrorHandlerAdapter.java
  
  
  
  
  1.5       +16 -52    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/logkit/LogKitAdapter.java
  
  
  
  
  1.6       +26 -62    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/logkit/LogKitConfHelper.java
  
  
  
  
  1.3       +16 -49    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/logkit/LogKitLoggerHelper.java
  
  
  
  
  1.4       +18 -51    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/util/AvalonTee.java
  
  
  
  
  1.3       +18 -51    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/util/LoggerManagerTee.java
  
  
  
  
  1.3       +17 -50    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/util/LoggerSwitch.java
  
  
  
  
  1.3       +18 -54    avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/util/LoggerUtil.java
  
  
  
  
  1.10      +3 -3      avalon-excalibur/logger/src/test/org/apache/avalon/excalibur/logger/test/LogKitManagementTest.java
  
  
  
  
  1.4       +2 -3      avalon-excalibur/logger/src/test/org/apache/avalon/excalibur/logger/test/LogKitManagementTest.xtest
  
  
  
  
  1.11      +7 -7      avalon-excalibur/logger/src/test/org/apache/avalon/excalibur/logger/test/LogKitManagementTestCase.java
  
  
  
  
  1.4       +2 -3      avalon-excalibur/logger/src/test/org/apache/avalon/excalibur/logger/test/LogKitManagementTestCase.xtest
  
  
  
  
  1.1                  avalon-excalibur/logger/src/test/org/apache/avalon/excalibur/logger/test/LogKitTestComponent.java
  
  Index: LogKitTestComponent.java
  ===================================================================
  /* 
   * Copyright 2002-2004 The Apache Software Foundation
   * Licensed  under the  Apache License,  Version 2.0  (the "License");
   * you may not use  this file  except in  compliance with the License.
   * You may obtain a copy of the License at 
   * 
   *   http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed  under the  License is distributed on an "AS IS" BASIS,
   * WITHOUT  WARRANTIES OR CONDITIONS  OF ANY KIND, either  express  or
   * implied.
   * 
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.avalon.excalibur.logger.test;
  
  import org.apache.avalon.framework.component.Component;
  import org.apache.avalon.framework.logger.Logger;
  
  /**
   * TestComponent.
   *
   * @author <a href="mailto:dev@avalon.apache.org">Avalon Development Team</a>
   * @version CVS $Revision: 1.1 $ $Date: 2004/03/10 13:54:51 $
   */
  public interface LogKitTestComponent
      extends Component
  {
      String ROLE = LogKitTestComponent.class.getName();
  
      void test( Logger defaultLogger, String message );
  }
  
  
  
  1.1                  avalon-excalibur/logger/src/test/org/apache/avalon/excalibur/logger/test/LogKitTestComponentImpl.java
  
  Index: LogKitTestComponentImpl.java
  ===================================================================
  /* 
   * Copyright 2002-2004 The Apache Software Foundation
   * Licensed  under the  Apache License,  Version 2.0  (the "License");
   * you may not use  this file  except in  compliance with the License.
   * You may obtain a copy of the License at 
   * 
   *   http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed  under the  License is distributed on an "AS IS" BASIS,
   * WITHOUT  WARRANTIES OR CONDITIONS  OF ANY KIND, either  express  or
   * implied.
   * 
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.avalon.excalibur.logger.test;
  
  import org.apache.avalon.framework.logger.AbstractLogEnabled;
  import org.apache.avalon.framework.logger.Logger;
  
  /**
   * TestComponent.
   *
   * @author <a href="mailto:dev@avalon.apache.org">Avalon Development Team</a>
   * @version CVS $Revision: 1.1 $ $Date: 2004/03/10 13:54:51 $
   */
  public class LogKitTestComponentImpl
      extends AbstractLogEnabled
      implements LogKitTestComponent
  {
      public void test( Logger defaultLogger, String message )
      {
          final Logger logger = getLogger();
          //final String cat = logger.getCategory();
          //defaultLogger.info( "Category is " + cat );
          logger.debug( message );
          logger.info( message );
          logger.warn( message );
          logger.error( message );
          logger.fatalError( message );
      }
  }
  
  
  

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


Mime
View raw message