1 5 package com.tc.logging; 6 7 import com.tc.exception.ImplementMe; 8 9 12 public class NullTCLogger implements TCLogger { 13 14 public void debug(Object message) { 15 } 17 18 public void debug(Object message, Throwable t) { 19 } 21 22 public void error(Object message) { 23 } 25 26 public void error(Object message, Throwable t) { 27 } 29 30 public void fatal(Object message) { 31 } 33 34 public void fatal(Object message, Throwable t) { 35 } 37 38 public void info(Object message) { 39 } 41 42 public void info(Object message, Throwable t) { 43 } 45 46 public void warn(Object message) { 47 } 49 50 public void warn(Object message, Throwable t) { 51 } 53 54 public boolean isDebugEnabled() { 55 return false; 56 } 57 58 public boolean isInfoEnabled() { 59 return false; 60 } 61 62 public void log(LogLevel level, Object message) { 63 } 65 66 public void log(LogLevel level, Object message, Throwable t) { 67 } 69 70 public void setLevel(LogLevel level) { 71 } 73 74 public LogLevel getLevel() { 75 if (true) throw new ImplementMe(); 76 return null; 77 } 78 79 public String getName() { 80 return ""; 81 } 82 83 } | Popular Tags |