1 // ======================================================================== 2 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // you may not use this file except in compliance with the License. 4 // You may obtain a copy of the License at 5 // http://www.apache.org/licenses/LICENSE-2.0 6 // Unless required by applicable law or agreed to in writing, software 7 // distributed under the License is distributed on an "AS IS" BASIS, 8 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 9 // See the License for the specific language governing permissions and 10 // limitations under the License. 11 // ======================================================================== 12 package com.sun.org.apache.commons.logging.impl; 13 14 import com.sun.org.apache.commons.logging.Log; 15 16 17 public class NoOpLog implements Log 18 { 19 20 /** 21 * 22 */ 23 public NoOpLog() 24 { 25 super(); 26 } 27 28 /** 29 * @see com.sun.org.apache.commons.logging.Log#fatal(java.lang.Object) 30 */ 31 public void fatal(Object message) 32 { 33 //noop 34 } 35 36 /** 37 * @see com.sun.org.apache.commons.logging.Log#fatal(java.lang.Object, java.lang.Throwable) 38 */ 39 public void fatal(Object message, Throwable t) 40 { 41 } 42 43 /** 44 * @see com.sun.org.apache.commons.logging.Log#debug(java.lang.Object) 45 */ 46 public void debug(Object message) 47 { 48 49 } 50 51 /** 52 * @see com.sun.org.apache.commons.logging.Log#debug(java.lang.Object, java.lang.Throwable) 53 */ 54 public void debug(Object message, Throwable t) 55 { 56 57 } 58 59 /** 60 * @see com.sun.org.apache.commons.logging.Log#trace(java.lang.Object) 61 */ 62 public void trace(Object message) 63 { 64 65 } 66 67 /** 68 * @see com.sun.org.apache.commons.logging.Log#info(java.lang.Object) 69 */ 70 public void info(Object message) 71 { 72 73 } 74 75 /** 76 * @see com.sun.org.apache.commons.logging.Log#error(java.lang.Object) 77 */ 78 public void error(Object message) 79 { 80 81 } 82 83 /** 84 * @see com.sun.org.apache.commons.logging.Log#error(java.lang.Object, java.lang.Throwable) 85 */ 86 public void error(Object message, Throwable cause) 87 { 88 89 } 90 91 /** 92 * @see com.sun.org.apache.commons.logging.Log#warn(java.lang.Object) 93 */ 94 public void warn(Object message) 95 { 96 97 } 98 99 /** 100 * @see com.sun.org.apache.commons.logging.Log#isDebugEnabled() 101 */ 102 public boolean isDebugEnabled() 103 { 104 return false; 105 } 106 107 /** 108 * @see com.sun.org.apache.commons.logging.Log#isWarnEnabled() 109 */ 110 public boolean isWarnEnabled() 111 { 112 return false; 113 } 114 115 /** 116 * @see com.sun.org.apache.commons.logging.Log#isInfoEnabled() 117 */ 118 public boolean isInfoEnabled() 119 { 120 return false; 121 } 122 123 /** 124 * @see com.sun.org.apache.commons.logging.Log#isErrorEnabled() 125 */ 126 public boolean isErrorEnabled() 127 { 128 return false; 129 } 130 131 /** 132 * @see com.sun.org.apache.commons.logging.Log#isTraceEnabled() 133 */ 134 public boolean isTraceEnabled() 135 { 136 return false; 137 } 138 139 }