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