001: // ========================================================================
002: // Licensed under the Apache License, Version 2.0 (the "License");
003: // you may not use this file except in compliance with the License.
004: // You may obtain a copy of the License at
005: // http://www.apache.org/licenses/LICENSE-2.0
006: // Unless required by applicable law or agreed to in writing, software
007: // distributed under the License is distributed on an "AS IS" BASIS,
008: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
009: // See the License for the specific language governing permissions and
010: // limitations under the License.
011: // ========================================================================
012: package com.sun.org.apache.commons.logging.impl;
013:
014: import com.sun.org.apache.commons.logging.Log;
015:
016: public class NoOpLog implements Log {
017:
018: /**
019: *
020: */
021: public NoOpLog() {
022: super ();
023: }
024:
025: /**
026: * @see com.sun.org.apache.commons.logging.Log#fatal(java.lang.Object)
027: */
028: public void fatal(Object message) {
029: //noop
030: }
031:
032: /**
033: * @see com.sun.org.apache.commons.logging.Log#fatal(java.lang.Object, java.lang.Throwable)
034: */
035: public void fatal(Object message, Throwable t) {
036: }
037:
038: /**
039: * @see com.sun.org.apache.commons.logging.Log#debug(java.lang.Object)
040: */
041: public void debug(Object message) {
042:
043: }
044:
045: /**
046: * @see com.sun.org.apache.commons.logging.Log#debug(java.lang.Object, java.lang.Throwable)
047: */
048: public void debug(Object message, Throwable t) {
049:
050: }
051:
052: /**
053: * @see com.sun.org.apache.commons.logging.Log#trace(java.lang.Object)
054: */
055: public void trace(Object message) {
056:
057: }
058:
059: /**
060: * @see com.sun.org.apache.commons.logging.Log#info(java.lang.Object)
061: */
062: public void info(Object message) {
063:
064: }
065:
066: /**
067: * @see com.sun.org.apache.commons.logging.Log#error(java.lang.Object)
068: */
069: public void error(Object message) {
070:
071: }
072:
073: /**
074: * @see com.sun.org.apache.commons.logging.Log#error(java.lang.Object, java.lang.Throwable)
075: */
076: public void error(Object message, Throwable cause) {
077:
078: }
079:
080: /**
081: * @see com.sun.org.apache.commons.logging.Log#warn(java.lang.Object)
082: */
083: public void warn(Object message) {
084:
085: }
086:
087: /**
088: * @see com.sun.org.apache.commons.logging.Log#isDebugEnabled()
089: */
090: public boolean isDebugEnabled() {
091: return false;
092: }
093:
094: /**
095: * @see com.sun.org.apache.commons.logging.Log#isWarnEnabled()
096: */
097: public boolean isWarnEnabled() {
098: return false;
099: }
100:
101: /**
102: * @see com.sun.org.apache.commons.logging.Log#isInfoEnabled()
103: */
104: public boolean isInfoEnabled() {
105: return false;
106: }
107:
108: /**
109: * @see com.sun.org.apache.commons.logging.Log#isErrorEnabled()
110: */
111: public boolean isErrorEnabled() {
112: return false;
113: }
114:
115: /**
116: * @see com.sun.org.apache.commons.logging.Log#isTraceEnabled()
117: */
118: public boolean isTraceEnabled() {
119: return false;
120: }
121:
122: }
|