1 package org.apache.maven.scm.manager.plexus;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.scm.log.ScmLogger;
23 import org.codehaus.plexus.logging.Logger;
24
25
26
27
28
29 public class PlexusLogger
30 implements ScmLogger
31 {
32 private Logger logger;
33
34 public PlexusLogger( Logger logger )
35 {
36 this.logger = logger;
37 }
38
39
40 public boolean isDebugEnabled()
41 {
42 return logger.isDebugEnabled();
43 }
44
45
46 public void debug( String content )
47 {
48 logger.debug( content );
49 }
50
51
52 public void debug( String content, Throwable error )
53 {
54 logger.debug( content, error );
55 }
56
57
58 public void debug( Throwable error )
59 {
60 logger.debug( "", error );
61 }
62
63
64 public boolean isInfoEnabled()
65 {
66 return logger.isInfoEnabled();
67 }
68
69
70 public void info( String content )
71 {
72 logger.info( content );
73 }
74
75
76 public void info( String content, Throwable error )
77 {
78 logger.info( content, error );
79 }
80
81
82 public void info( Throwable error )
83 {
84 logger.info( "", error );
85 }
86
87
88 public boolean isWarnEnabled()
89 {
90 return logger.isWarnEnabled();
91 }
92
93
94 public void warn( String content )
95 {
96 logger.warn( content );
97 }
98
99
100 public void warn( String content, Throwable error )
101 {
102 logger.warn( content, error );
103 }
104
105
106 public void warn( Throwable error )
107 {
108 logger.warn( "", error );
109 }
110
111
112 public boolean isErrorEnabled()
113 {
114 return logger.isErrorEnabled();
115 }
116
117
118 public void error( String content )
119 {
120 logger.error( content );
121 }
122
123
124 public void error( String content, Throwable error )
125 {
126 logger.error( content, error );
127 }
128
129
130 public void error( Throwable error )
131 {
132 logger.error( "", error );
133 }
134 }