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