1 33 34 package org.slf4j.impl; 35 36 import org.slf4j.Logger; 37 import org.slf4j.helpers.MarkerIgnoringBase; 38 39 40 45 public class NOPLogger extends MarkerIgnoringBase { 46 49 public static final NOPLogger NOP_LOGGER = new NOPLogger(); 50 51 55 protected NOPLogger() { 56 } 57 58 61 public String getName() { 62 return "NOP"; 63 } 64 65 69 final public boolean isTraceEnabled() { 70 return false; 71 } 72 73 74 final public void trace(String msg) { 75 } 77 78 79 final public void trace(String format, Object arg) { 80 } 82 83 84 public final void trace(String format, Object arg1, Object arg2) { 85 } 87 88 89 public final void trace(String format, Object [] argArray) { 90 } 92 93 94 final public void trace(String msg, Throwable t) { 95 } 97 98 102 final public boolean isDebugEnabled() { 103 return false; 104 } 105 106 107 final public void debug(String msg) { 108 } 110 111 112 final public void debug(String format, Object arg) { 113 } 115 116 117 public final void debug(String format, Object arg1, Object arg2) { 118 } 120 121 122 public final void debug(String format, Object [] argArray) { 123 } 125 126 127 128 129 final public void debug(String msg, Throwable t) { 130 } 132 133 137 final public boolean isInfoEnabled() { 138 return false; 140 } 141 142 143 144 final public void info(String msg) { 145 } 147 148 149 final public void info(String format, Object arg1) { 150 } 152 153 154 final public void info(String format, Object arg1, Object arg2) { 155 } 157 158 159 public final void info(String format, Object [] argArray) { 160 } 162 163 164 165 final public void info(String msg, Throwable t) { 166 } 168 169 170 174 final public boolean isWarnEnabled() { 175 return false; 176 } 177 178 179 final public void warn(String msg) { 180 } 182 183 184 final public void warn(String format, Object arg1) { 185 } 187 188 189 final public void warn(String format, Object arg1, Object arg2) { 190 } 192 193 194 public final void warn(String format, Object [] argArray) { 195 } 197 198 199 200 final public void warn(String msg, Throwable t) { 201 } 203 204 205 206 final public boolean isErrorEnabled() { 207 return false; 208 } 209 210 211 final public void error(String msg) { 212 } 214 215 216 final public void error(String format, Object arg1) { 217 } 219 220 221 final public void error(String format, Object arg1, Object arg2) { 222 } 224 225 226 public final void error(String format, Object [] argArray) { 227 } 229 230 231 232 final public void error(String msg, Throwable t) { 233 } 235 } 236 | Popular Tags |