1 25 package com.mysql.jdbc.log; 26 27 35 public class NullLogger implements Log { 36 37 43 public NullLogger(String instanceName) { 44 } 45 46 49 public boolean isDebugEnabled() { 50 return false; 52 } 53 54 57 public boolean isErrorEnabled() { 58 return false; 60 } 61 62 65 public boolean isFatalEnabled() { 66 return false; 68 } 69 70 73 public boolean isInfoEnabled() { 74 return false; 76 } 77 78 81 public boolean isTraceEnabled() { 82 return false; 84 } 85 86 89 public boolean isWarnEnabled() { 90 return false; 92 } 93 94 97 public void logDebug(Object msg) { 98 100 } 101 102 106 public void logDebug(Object msg, Throwable thrown) { 107 109 } 110 111 114 public void logError(Object msg) { 115 117 } 118 119 123 public void logError(Object msg, Throwable thrown) { 124 126 } 127 128 131 public void logFatal(Object msg) { 132 134 } 135 136 140 public void logFatal(Object msg, Throwable thrown) { 141 143 } 144 145 148 public void logInfo(Object msg) { 149 151 } 152 153 157 public void logInfo(Object msg, Throwable thrown) { 158 160 } 161 162 165 public void logTrace(Object msg) { 166 168 } 169 170 174 public void logTrace(Object msg, Throwable thrown) { 175 177 } 178 179 182 public void logWarn(Object msg) { 183 185 } 186 187 191 public void logWarn(Object msg, Throwable thrown) { 192 194 } 195 196 } 197 | Popular Tags |