avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon-excalibur/logger-tests/src/test/org/apache/avalon/excalibur/logger/test TestComponent.java TestComponentImpl.java
Date Thu, 01 Apr 2004 04:22:07 GMT
mcconnell    2004/03/31 20:22:07

  Added:       logger-tests/src/test/org/apache/avalon/excalibur/logger/test
                        TestComponent.java TestComponentImpl.java
  Log:
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  Changes    Path
  1.1                  avalon-excalibur/logger-tests/src/test/org/apache/avalon/excalibur/logger/test/TestComponent.java
  
  Index: TestComponent.java
  ===================================================================
  /* 
   * Copyright 2002-2004 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:giacomo@apache,org">Giacomo Pati</a>
   * @version CVS $Revision: 1.1 $ $Date: 2004/04/01 04:22:07 $
   */
  public interface TestComponent
      extends Component
  {
      String ROLE = TestComponent.class.getName();
  
      void test( Logger defaultLogger, String message );
  }
  
  
  
  1.1                  avalon-excalibur/logger-tests/src/test/org/apache/avalon/excalibur/logger/test/TestComponentImpl.java
  
  Index: TestComponentImpl.java
  ===================================================================
  /* 
   * Copyright 2002-2004 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:giacomo@apache,org">Giacomo Pati</a>
   * @version CVS $Revision: 1.1 $ $Date: 2004/04/01 04:22:07 $
   */
  public class TestComponentImpl
      extends AbstractLogEnabled
      implements TestComponent
  {
      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