1 package org.apache.jetspeed.services.logging; 2 3 18 19 import org.apache.turbine.util.RunData; 21 import org.apache.turbine.services.logging.Logger; 22 import org.apache.turbine.services.logging.LoggingConfig; 23 24 33 public class BaseLogger implements Logger 34 { 35 38 private JetspeedLogger log = null; 39 40 43 private int logLevel; 44 45 48 private String name; 49 50 55 public BaseLogger(JetspeedLogger log) 56 { 57 this.log = log; 58 } 59 60 65 public String getName() 66 { 67 return this.name; 68 } 69 70 75 public void setName(String logName) 76 { 77 this.name = logName; 78 } 79 80 85 public JetspeedLogger getLog() 86 { 87 return this.log; 88 } 89 90 95 public void setLog(JetspeedLogger log) 96 { 97 this.log = log; 98 } 99 100 107 public boolean checkLogger() 108 { 109 110 return true; 111 } 112 113 114 121 public void init(LoggingConfig loggingConfig) 122 { 123 } 125 126 129 public void shutdown() 130 { 131 } 133 134 139 public void setLogLevel(int level) 140 { 141 this.logLevel = level; 142 } 143 144 149 public boolean isDebugEnabled() 150 { 151 152 return this.log.isDebugEnabled(); 153 } 154 155 160 public boolean isInfoEnabled() 161 { 162 163 return this.log.isInfoEnabled(); 164 } 165 166 171 public boolean isWarnEnabled() 172 { 173 174 return this.log.isWarnEnabled(); 175 } 176 177 178 183 public boolean isErrorEnabled() 184 { 185 186 return this.log.isErrorEnabled(); 187 } 188 189 194 public void setFormat(String format) 195 { 196 } 198 199 204 public void debug(String message) 205 { 206 this.log.debug(message); 207 } 208 209 215 public void debug(String message, Throwable t) 216 { 217 this.log.debug(message, t); 218 } 219 220 226 public void debug(String message, RunData data) 227 { 228 this.log.debug(message); 229 } 230 231 238 public void debug(String message, RunData data, Throwable t) 239 { 240 this.log.debug(message, t); 241 } 242 243 248 public void info(String message) 249 { 250 this.log.info(message); 251 } 252 253 259 public void info(String message, Throwable t) 260 { 261 this.log.info(message, t); 262 } 263 264 270 public void info(String message, RunData data) 271 { 272 this.log.info(message); 273 } 274 275 282 public void info(String message, RunData data, Throwable t) 283 { 284 this.log.info(message, t); 285 } 286 287 292 public void warn(String message) 293 { 294 this.log.warn(message); 295 } 296 297 303 public void warn(String message, Throwable t) 304 { 305 this.log.warn(message, t); 306 } 307 308 314 public void warn(String message, RunData data) 315 { 316 this.log.warn(message); 317 } 318 319 326 public void warn(String message, RunData data, Throwable t) 327 { 328 this.log.warn(message, t); 329 } 330 331 336 public void error(String message) 337 { 338 this.log.error(message); 339 } 340 341 347 public void error(String message, Throwable e) 348 { 349 this.log.error(message, e); 350 } 351 352 357 public void error(Throwable e) 358 { 359 this.log.error(e); 360 } 361 362 368 public void error(String message, RunData data) 369 { 370 this.log.error(message); 371 } 372 373 380 public void error(String message, RunData data, Throwable e) 381 { 382 this.log.error(message, e); 383 } 384 } 385 | Popular Tags |