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