View Javadoc

1   /*
2    * See the NOTICE file distributed with this work for additional
3    * information regarding copyright ownership.
4    *
5    * This is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU Lesser General Public License as
7    * published by the Free Software Foundation; either version 2.1 of
8    * the License, or (at your option) any later version.
9    *
10   * This software is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13   * Lesser General Public License for more details.
14   *
15   * You should have received a copy of the GNU Lesser General Public
16   * License along with this software; if not, write to the Free
17   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
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   * Created by IntelliJ IDEA. User: DenisG Date: Nov 20, 2010 Time: 12:47:36 PM To change this template use File |
28   * Settings | File Templates.
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 }