1 package net.javacoding.jspider.core.logging.impl; 2 3 4 5 13 public class SystemOutLogImpl extends BaseLogImpl { 14 15 16 20 public void doLog(String message) { 21 System.out.println(message); 22 } 23 24 public void doLog(Object o) { 25 doLog ("" + o); 26 } 27 28 public void doLog(Throwable t) { 29 doLog ("" + t); 30 } 31 32 public boolean isDebugEnabled() { 33 return true; 34 } 35 36 public boolean isErrorEnabled() { 37 return true; 38 } 39 40 public boolean isFatalEnabled() { 41 return true; 42 } 43 44 public boolean isInfoEnabled() { 45 return true; 46 } 47 48 public boolean isTraceEnabled() { 49 return true; 50 } 51 52 public boolean isWarnEnabled() { 53 return true; 54 } 55 56 public void trace(Object o) { 57 doLog(o); 58 } 59 60 public void trace(Object o, Throwable throwable) { 61 doLog(o); 62 doLog(throwable); 63 } 64 65 public void debug(Object o) { 66 doLog(o); 67 } 68 69 public void debug(Object o, Throwable throwable) { 70 doLog(o); 71 doLog(throwable); 72 } 73 74 public void info(Object o) { 75 doLog(o); 76 } 77 78 public void info(Object o, Throwable throwable) { 79 doLog(o); 80 doLog(throwable); 81 } 82 83 public void warn(Object o) { 84 doLog(o); 85 } 86 87 public void warn(Object o, Throwable throwable) { 88 doLog(o); 89 doLog(throwable); 90 } 91 92 public void error(Object o) { 93 doLog(o); 94 } 95 96 public void error(Object o, Throwable throwable) { 97 doLog(o); 98 doLog(throwable); 99 } 100 101 public void fatal(Object o) { 102 doLog(o); 103 } 104 105 public void fatal(Object o, Throwable throwable) { 106 doLog(o); 107 doLog(throwable); 108 } 109 110 } 111 | Popular Tags |