1 23 24 package org.apache.slide.util.logger; 25 26 37 public interface Logger { 38 39 40 42 43 62 public static final int EMERGENCY=0; 63 64 65 86 public static final int CRITICAL=1; 87 88 89 109 public static final int ERROR=2; 110 111 131 public static final int WARNING=4; 132 133 134 153 public static final int INFO=6; 154 155 156 177 public static final int DEBUG=7; 178 179 180 183 public static String DEFAULT_CHANNEL = "org.apache.slide.util.logger"; 184 185 186 188 189 197 public void log(Object data, Throwable throwable, String channel, int level); 198 199 200 207 public void log(Object data, String channel, int level); 208 209 210 216 public void log(Object data, int level); 217 218 219 224 public void log(Object data); 225 226 227 228 233 234 public void setLoggerLevel(int level); 235 236 237 238 244 245 public void setLoggerLevel(String channel, int level); 246 247 248 249 252 253 public int getLoggerLevel(); 254 255 256 257 262 263 public int getLoggerLevel(String channel); 264 265 266 267 268 274 275 public boolean isEnabled(String channel, int level); 276 277 278 279 284 285 public boolean isEnabled(int level); 286 287 } 288 | Popular Tags |