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