1 24 25 package org.objectweb.dream.util; 26 27 import org.objectweb.util.monolog.api.BasicLevel; 28 import org.objectweb.util.monolog.api.Level; 29 import org.objectweb.util.monolog.api.Logger; 30 31 36 public class NullLogger implements Logger 37 { 38 39 42 public static final NullLogger NULL_LOGGER = new NullLogger(); 43 44 48 protected NullLogger() 49 { 50 } 51 52 55 public void setIntLevel(int arg0) 56 { 57 } 58 59 62 public void setLevel(Level arg0) 63 { 64 } 65 66 71 public int getCurrentIntLevel() 72 { 73 return BasicLevel.FATAL; 74 } 75 76 81 public Level getCurrentLevel() 82 { 83 return BasicLevel.LEVEL_FATAL; 84 } 85 86 91 public boolean isLoggable(int arg0) 92 { 93 return false; 94 } 95 96 101 public boolean isLoggable(Level arg0) 102 { 103 return false; 104 } 105 106 111 public boolean isOn() 112 { 113 return false; 114 } 115 116 119 public void log(int arg0, Object arg1) 120 { 121 } 122 123 127 public void log(Level arg0, Object arg1) 128 { 129 } 130 131 135 public void log(int arg0, Object arg1, Throwable arg2) 136 { 137 } 138 139 143 public void log(Level arg0, Object arg1, Throwable arg2) 144 { 145 } 146 147 151 public void log(int arg0, Object arg1, Object arg2, Object arg3) 152 { 153 } 154 155 159 public void log(Level arg0, Object arg1, Object arg2, Object arg3) 160 { 161 } 162 163 167 public void log(int arg0, Object arg1, Throwable arg2, Object arg3, 168 Object arg4) 169 { 170 } 171 172 177 public void log(Level arg0, Object arg1, Throwable arg2, Object arg3, 178 Object arg4) 179 { 180 } 181 182 185 public void turnOn() 186 { 187 } 188 189 192 public void turnOff() 193 { 194 } 195 196 199 public String getName() 200 { 201 return "NullLogger"; 202 } 203 204 207 public void setName(String arg0) 208 { 209 } 210 211 214 public String getType() 215 { 216 return "logger"; 217 } 218 219 222 public String [] getAttributeNames() 223 { 224 return new String [0]; 225 } 226 227 230 public Object getAttribute(String arg0) 231 { 232 return null; 233 } 234 235 239 public Object setAttribute(String arg0, Object arg1) 240 { 241 return null; 242 } 243 } | Popular Tags |