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 public class Slf4jLogger
31 implements Logger
32 {
33
34 private org.slf4j.Logger logger;
35
36 public Slf4jLogger( org.slf4j.Logger logger )
37 {
38 this.logger = logger;
39 }
40
41 public void debug( String message )
42 {
43 logger.debug( message );
44 }
45
46 public void debug( String message, Throwable throwable )
47 {
48 logger.debug( message, throwable );
49 }
50
51 public boolean isDebugEnabled()
52 {
53 return logger.isDebugEnabled();
54 }
55
56 public void info( String message )
57 {
58 logger.info( message );
59 }
60
61 public void info( String message, Throwable throwable )
62 {
63 logger.info( message, throwable );
64 }
65
66 public boolean isInfoEnabled()
67 {
68 return logger.isInfoEnabled();
69 }
70
71 public void warn( String message )
72 {
73 logger.warn( message );
74 }
75
76 public void warn( String message, Throwable throwable )
77 {
78 logger.warn( message, throwable );
79 }
80
81 public boolean isWarnEnabled()
82 {
83 return logger.isWarnEnabled();
84 }
85
86 public void error( String message )
87 {
88 logger.error( message );
89 }
90
91 public void error( String message, Throwable throwable )
92 {
93 logger.error( message, throwable );
94 }
95
96 public boolean isErrorEnabled()
97 {
98 return logger.isErrorEnabled();
99 }
100
101 public void fatalError( String message )
102 {
103 logger.error( message );
104 }
105
106 public void fatalError( String message, Throwable throwable )
107 {
108 logger.error( message, throwable );
109 }
110
111 public boolean isFatalErrorEnabled()
112 {
113 return logger.isErrorEnabled();
114 }
115
116
117
118
119 public int getThreshold()
120 {
121 return 0;
122 }
123
124
125
126
127 public void setThreshold( int threshold )
128 {
129 }
130
131
132
133
134 public Logger getChildLogger( String name )
135 {
136 return null;
137 }
138
139 public String getName()
140 {
141 return logger.getName();
142 }
143
144 }