1 package org.apache.maven.scm.manager.plexus;
2
3 /*
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 */
21
22 import org.apache.maven.scm.log.ScmLogger;
23 import org.codehaus.plexus.logging.Logger;
24
25 /**
26 * @author <a href="mailto:evenisse@apache.org">Emmanuel Venisse</a>
27 *
28 */
29 @Deprecated
30 public class PlexusLogger
31 implements ScmLogger
32 {
33 private Logger logger;
34
35 public PlexusLogger( Logger logger )
36 {
37 this.logger = logger;
38 }
39
40 /** {@inheritDoc} */
41 public boolean isDebugEnabled()
42 {
43 return logger.isDebugEnabled();
44 }
45
46 /** {@inheritDoc} */
47 public void debug( String content )
48 {
49 logger.debug( content );
50 }
51
52 /** {@inheritDoc} */
53 public void debug( String content, Throwable error )
54 {
55 logger.debug( content, error );
56 }
57
58 /** {@inheritDoc} */
59 public void debug( Throwable error )
60 {
61 logger.debug( "", error );
62 }
63
64 /** {@inheritDoc} */
65 public boolean isInfoEnabled()
66 {
67 return logger.isInfoEnabled();
68 }
69
70 /** {@inheritDoc} */
71 public void info( String content )
72 {
73 logger.info( content );
74 }
75
76 /** {@inheritDoc} */
77 public void info( String content, Throwable error )
78 {
79 logger.info( content, error );
80 }
81
82 /** {@inheritDoc} */
83 public void info( Throwable error )
84 {
85 logger.info( "", error );
86 }
87
88 /** {@inheritDoc} */
89 public boolean isWarnEnabled()
90 {
91 return logger.isWarnEnabled();
92 }
93
94 /** {@inheritDoc} */
95 public void warn( String content )
96 {
97 logger.warn( content );
98 }
99
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 }