001package org.apache.maven.scm.manager.plexus;
002
003/*
004 * Licensed to the Apache Software Foundation (ASF) under one
005 * or more contributor license agreements.  See the NOTICE file
006 * distributed with this work for additional information
007 * regarding copyright ownership.  The ASF licenses this file
008 * to you under the Apache License, Version 2.0 (the
009 * "License"); you may not use this file except in compliance
010 * with the License.  You may obtain a copy of the License at
011 *
012 * http://www.apache.org/licenses/LICENSE-2.0
013 *
014 * Unless required by applicable law or agreed to in writing,
015 * software distributed under the License is distributed on an
016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017 * KIND, either express or implied.  See the License for the
018 * specific language governing permissions and limitations
019 * under the License.
020 */
021
022import org.apache.maven.scm.log.ScmLogger;
023import org.codehaus.plexus.logging.Logger;
024
025/**
026 * @author <a href="mailto:evenisse@apache.org">Emmanuel Venisse</a>
027 *
028 */
029@Deprecated
030public class PlexusLogger
031    implements ScmLogger
032{
033    private Logger logger;
034
035    public PlexusLogger( Logger logger )
036    {
037        this.logger = logger;
038    }
039
040    /** {@inheritDoc} */
041    public boolean isDebugEnabled()
042    {
043        return logger.isDebugEnabled();
044    }
045
046    /** {@inheritDoc} */
047    public void debug( String content )
048    {
049        logger.debug( content );
050    }
051
052    /** {@inheritDoc} */
053    public void debug( String content, Throwable error )
054    {
055        logger.debug( content, error );
056    }
057
058    /** {@inheritDoc} */
059    public void debug( Throwable error )
060    {
061        logger.debug( "", error );
062    }
063
064    /** {@inheritDoc} */
065    public boolean isInfoEnabled()
066    {
067        return logger.isInfoEnabled();
068    }
069
070    /** {@inheritDoc} */
071    public void info( String content )
072    {
073        logger.info( content );
074    }
075
076    /** {@inheritDoc} */
077    public void info( String content, Throwable error )
078    {
079        logger.info( content, error );
080    }
081
082    /** {@inheritDoc} */
083    public void info( Throwable error )
084    {
085        logger.info( "", error );
086    }
087
088    /** {@inheritDoc} */
089    public boolean isWarnEnabled()
090    {
091        return logger.isWarnEnabled();
092    }
093
094    /** {@inheritDoc} */
095    public void warn( String content )
096    {
097        logger.warn( content );
098    }
099
100    /** {@inheritDoc} */
101    public void warn( String content, Throwable error )
102    {
103        logger.warn( content, error );
104    }
105
106    /** {@inheritDoc} */
107    public void warn( Throwable error )
108    {
109        logger.warn( "", error );
110    }
111
112    /** {@inheritDoc} */
113    public boolean isErrorEnabled()
114    {
115        return logger.isErrorEnabled();
116    }
117
118    /** {@inheritDoc} */
119    public void error( String content )
120    {
121        logger.error( content );
122    }
123
124    /** {@inheritDoc} */
125    public void error( String content, Throwable error )
126    {
127        logger.error( content, error );
128    }
129
130    /** {@inheritDoc} */
131    public void error( Throwable error )
132    {
133        logger.error( "", error );
134    }
135}