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 */
029public class PlexusLogger
030    implements ScmLogger
031{
032    private Logger logger;
033
034    public PlexusLogger( Logger logger )
035    {
036        this.logger = logger;
037    }
038
039    /** {@inheritDoc} */
040    public boolean isDebugEnabled()
041    {
042        return logger.isDebugEnabled();
043    }
044
045    /** {@inheritDoc} */
046    public void debug( String content )
047    {
048        logger.debug( content );
049    }
050
051    /** {@inheritDoc} */
052    public void debug( String content, Throwable error )
053    {
054        logger.debug( content, error );
055    }
056
057    /** {@inheritDoc} */
058    public void debug( Throwable error )
059    {
060        logger.debug( "", error );
061    }
062
063    /** {@inheritDoc} */
064    public boolean isInfoEnabled()
065    {
066        return logger.isInfoEnabled();
067    }
068
069    /** {@inheritDoc} */
070    public void info( String content )
071    {
072        logger.info( content );
073    }
074
075    /** {@inheritDoc} */
076    public void info( String content, Throwable error )
077    {
078        logger.info( content, error );
079    }
080
081    /** {@inheritDoc} */
082    public void info( Throwable error )
083    {
084        logger.info( "", error );
085    }
086
087    /** {@inheritDoc} */
088    public boolean isWarnEnabled()
089    {
090        return logger.isWarnEnabled();
091    }
092
093    /** {@inheritDoc} */
094    public void warn( String content )
095    {
096        logger.warn( content );
097    }
098
099    /** {@inheritDoc} */
100    public void warn( String content, Throwable error )
101    {
102        logger.warn( content, error );
103    }
104
105    /** {@inheritDoc} */
106    public void warn( Throwable error )
107    {
108        logger.warn( "", error );
109    }
110
111    /** {@inheritDoc} */
112    public boolean isErrorEnabled()
113    {
114        return logger.isErrorEnabled();
115    }
116
117    /** {@inheritDoc} */
118    public void error( String content )
119    {
120        logger.error( content );
121    }
122
123    /** {@inheritDoc} */
124    public void error( String content, Throwable error )
125    {
126        logger.error( content, error );
127    }
128
129    /** {@inheritDoc} */
130    public void error( Throwable error )
131    {
132        logger.error( "", error );
133    }
134}