001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.log;
022:
023: import com.liferay.portal.kernel.log.Log;
024:
025: /**
026: * <a href="CommonsLogImpl.java.html"><b><i>View Source</i></b></a>
027: *
028: * @author Brian Wing Shun Chan
029: *
030: */
031: public class CommonsLogImpl implements Log {
032:
033: public CommonsLogImpl(org.apache.commons.logging.Log log) {
034: _log = log;
035: }
036:
037: public void debug(Object msg) {
038: _log.debug(msg);
039: }
040:
041: public void debug(Throwable t) {
042: _log.debug(t);
043: }
044:
045: public void debug(Object msg, Throwable t) {
046: _log.debug(msg, t);
047: }
048:
049: public void error(Object msg) {
050: _log.error(msg);
051: }
052:
053: public void error(Throwable t) {
054: _log.error(t);
055: }
056:
057: public void error(Object msg, Throwable t) {
058: _log.error(msg, t);
059: }
060:
061: public void fatal(Object msg) {
062: _log.fatal(msg);
063: }
064:
065: public void fatal(Throwable t) {
066: _log.fatal(t);
067: }
068:
069: public void fatal(Object msg, Throwable t) {
070: _log.fatal(msg, t);
071: }
072:
073: public void info(Object msg) {
074: _log.info(msg);
075: }
076:
077: public void info(Throwable t) {
078: _log.info(t);
079: }
080:
081: public void info(Object msg, Throwable t) {
082: _log.info(msg, t);
083: }
084:
085: public boolean isDebugEnabled() {
086: return _log.isDebugEnabled();
087: }
088:
089: public boolean isErrorEnabled() {
090: return _log.isErrorEnabled();
091: }
092:
093: public boolean isFatalEnabled() {
094: return _log.isFatalEnabled();
095: }
096:
097: public boolean isInfoEnabled() {
098: return _log.isInfoEnabled();
099: }
100:
101: public boolean isTraceEnabled() {
102: return _log.isTraceEnabled();
103: }
104:
105: public boolean isWarnEnabled() {
106: return _log.isWarnEnabled();
107: }
108:
109: public void trace(Object msg) {
110: _log.trace(msg);
111: }
112:
113: public void trace(Throwable t) {
114: _log.trace(t);
115: }
116:
117: public void trace(Object msg, Throwable t) {
118: _log.trace(msg, t);
119: }
120:
121: public void warn(Object msg) {
122: _log.warn(msg);
123: }
124:
125: public void warn(Throwable t) {
126: _log.warn(t);
127: }
128:
129: public void warn(Object msg, Throwable t) {
130: _log.warn(msg, t);
131: }
132:
133: private org.apache.commons.logging.Log _log;
134:
135: }
|