1 52 53 package freemarker.log; 54 55 59 class NullLoggerFactory implements LoggerFactory 60 { 61 NullLoggerFactory() 62 { 63 } 64 65 public Logger getLogger(String category) 66 { 67 return INSTANCE; 68 } 69 70 private static final Logger INSTANCE = new Logger() 71 { 72 public void debug(String message) 73 { 74 } 75 76 public void debug(String message, Throwable t) 77 { 78 } 79 80 public void error(String message) 81 { 82 } 83 84 public void error(String message, Throwable t) 85 { 86 } 87 88 public void info(String message) 89 { 90 } 91 92 public void info(String message, Throwable t) 93 { 94 } 95 96 public void warn(String message) 97 { 98 } 99 100 public void warn(String message, Throwable t) 101 { 102 } 103 104 public boolean isDebugEnabled() 105 { 106 return false; 107 } 108 109 public boolean isInfoEnabled() 110 { 111 return false; 112 } 113 114 public boolean isWarnEnabled() 115 { 116 return false; 117 } 118 119 public boolean isErrorEnabled() 120 { 121 return false; 122 } 123 124 public boolean isFatalEnabled() 125 { 126 return false; 127 } 128 }; 129 } 130 | Popular Tags |