1 20 21 package org.snmp4j.log; 22 23 import java.util.Iterator ; 24 import java.util.Collections ; 25 26 34 public class NoLogger implements LogAdapter { 35 36 static final NoLogger instance = new NoLogger(); 37 38 private NoLogger() { 39 } 40 41 public void debug(Object message) { 42 } 43 44 public void error(Object message) { 45 } 46 47 public void error(Object message, Throwable t) { 48 } 49 50 public void info(Object message) { 51 } 52 53 public boolean isDebugEnabled() { 54 return false; 55 } 56 57 public boolean isInfoEnabled() { 58 return false; 59 } 60 61 public boolean isWarnEnabled() { 62 return false; 63 } 64 65 public void warn(Object message) { 66 } 67 68 public void fatal(Object message) { 69 } 70 71 public void fatal(Object message, Throwable throwable) { 72 } 73 74 public void setLogLevel(LogLevel level) { 75 } 76 77 public String getName() { 78 return ""; 79 } 80 81 public LogLevel getLogLevel() { 82 return LogLevel.OFF; 83 } 84 85 public LogLevel getEffectiveLogLevel() { 86 return LogLevel.OFF; 87 } 88 89 public Iterator getLogHandler() { 90 return Collections.EMPTY_LIST.iterator(); 91 } 92 93 } 94 | Popular Tags |