1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.log;
24  
25  import com.liferay.portal.kernel.log.Log;
26  
27  /**
28   * <a href="CommonsLogImpl.java.html"><b><i>View Source</i></b></a>
29   *
30   * @author Brian Wing Shun Chan
31   *
32   */
33  public class CommonsLogImpl implements Log {
34  
35      public CommonsLogImpl(org.apache.commons.logging.Log log) {
36          _log = log;
37      }
38  
39      public void debug(Object msg) {
40          _log.debug(msg);
41      }
42  
43      public void debug(Throwable t) {
44          _log.debug(t);
45      }
46  
47      public void debug(Object msg, Throwable t) {
48          _log.debug(msg, t);
49      }
50  
51      public void error(Object msg) {
52          _log.error(msg);
53      }
54  
55      public void error(Throwable t) {
56          _log.error(t);
57      }
58  
59      public void error(Object msg, Throwable t) {
60          _log.error(msg, t);
61      }
62  
63      public void fatal(Object msg) {
64          _log.fatal(msg);
65      }
66  
67      public void fatal(Throwable t) {
68          _log.fatal(t);
69      }
70  
71      public void fatal(Object msg, Throwable t) {
72          _log.fatal(msg, t);
73      }
74  
75      public void info(Object msg) {
76          _log.info(msg);
77      }
78  
79      public void info(Throwable t) {
80          _log.info(t);
81      }
82  
83      public void info(Object msg, Throwable t) {
84          _log.info(msg, t);
85      }
86  
87      public boolean isDebugEnabled() {
88          return _log.isDebugEnabled();
89      }
90  
91      public boolean isErrorEnabled() {
92          return _log.isErrorEnabled();
93      }
94  
95      public boolean isFatalEnabled() {
96          return _log.isFatalEnabled();
97      }
98  
99      public boolean isInfoEnabled() {
100         return _log.isInfoEnabled();
101     }
102 
103     public boolean isTraceEnabled() {
104         return _log.isTraceEnabled();
105     }
106 
107     public boolean isWarnEnabled() {
108         return _log.isWarnEnabled();
109     }
110 
111     public void trace(Object msg) {
112         _log.trace(msg);
113     }
114 
115     public void trace(Throwable t) {
116         _log.trace(t);
117     }
118 
119     public void trace(Object msg, Throwable t) {
120         _log.trace(msg, t);
121     }
122 
123     public void warn(Object msg) {
124         _log.warn(msg);
125     }
126 
127     public void warn(Throwable t) {
128         _log.warn(t);
129     }
130 
131     public void warn(Object msg, Throwable t) {
132         _log.warn(msg, t);
133     }
134 
135     private org.apache.commons.logging.Log _log;
136 
137 }