You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by bl...@apache.org on 2001/11/01 14:31:22 UTC

cvs commit: jakarta-avalon/src/java/org/apache/avalon/framework/logger AbstractLoggable.java Loggable.java

bloritsch    01/11/01 05:31:22

  Modified:    src/java/org/apache/avalon/framework/logger
                        AbstractLoggable.java Loggable.java
  Log:
  Properly Deprecated AbstractLoggable and proveded new alternative
  
  Revision  Changes    Path
  1.5       +5 -13     jakarta-avalon/src/java/org/apache/avalon/framework/logger/AbstractLoggable.java
  
  Index: AbstractLoggable.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon/src/java/org/apache/avalon/framework/logger/AbstractLoggable.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AbstractLoggable.java	2001/11/01 09:18:09	1.4
  +++ AbstractLoggable.java	2001/11/01 13:31:22	1.5
  @@ -16,24 +16,16 @@
       implements Loggable
   {
       ///Base Logger instance
  -    private Logger    m_logger;
  +    private org.apache.log.Logger    m_logger;
   
       /**
        * Set the components logger.
        *
        * @param logger the logger
        */
  -    public void setLogger( final Logger logger )
  -    {
  -        m_logger = logger;
  -    }
  -
  -    /**
  -     * Set the component's logger.
  -     */
       public void setLogger( final org.apache.log.Logger logger )
       {
  -        setLogger( new LogKitLogger(logger) );
  +        m_logger = logger;
       }
   
       /**
  @@ -47,7 +39,7 @@
        *
        * @return the Logger
        */
  -    protected final Logger getLogger()
  +    protected final org.apache.log.Logger getLogger()
       {
           return m_logger;
       }
  @@ -71,7 +63,7 @@
        */
       protected void setupLogger( final Object component, final String subCategory )
       {
  -        Logger logger = m_logger;
  +        org.apache.log.Logger logger = m_logger;
   
           if( null != subCategory )
           {
  @@ -87,7 +79,7 @@
        * @param component the component to pass logger object to
        * @param logger the Logger
        */
  -    protected void setupLogger( final Object component, final Logger logger )
  +    protected void setupLogger( final Object component, final org.apache.log.Logger logger )
       {
           if( component instanceof Loggable )
           {
  
  
  
  1.4       +2 -8      jakarta-avalon/src/java/org/apache/avalon/framework/logger/Loggable.java
  
  Index: Loggable.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon/src/java/org/apache/avalon/framework/logger/Loggable.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Loggable.java	2001/10/31 15:45:50	1.3
  +++ Loggable.java	2001/11/01 13:31:22	1.4
  @@ -11,6 +11,8 @@
    * Components that need to log can implement this interface to
    * be provided Loggers.
    *
  + * @deprecated Use LogEnabled instead.
  + *
    * @author <a href="mailto:donaldp@apache.org">Peter Donald</a>
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
    */
  @@ -20,14 +22,6 @@
        * Provide component with a logger.
        *
        * @param logger the logger
  -     * @deprecated Use the setLogger( Logger ) method instead.
        */
       void setLogger( org.apache.log.Logger logger );
  -
  -    /**
  -     * Provide component with a logger.
  -     *
  -     * @param logger the logger
  -     */
  -    void setLogger( Logger logger );
   }
  
  
  

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