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