KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > logging > NullTCLogger


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
3  * notice. All rights reserved.
4  */

5 package com.tc.logging;
6
7 import com.tc.exception.ImplementMe;
8
9 /**
10  * @author steve
11  */

12 public class NullTCLogger implements TCLogger {
13
14   public void debug(Object JavaDoc message) {
15   //
16
}
17
18   public void debug(Object JavaDoc message, Throwable JavaDoc t) {
19   //
20
}
21
22   public void error(Object JavaDoc message) {
23   //
24
}
25
26   public void error(Object JavaDoc message, Throwable JavaDoc t) {
27   //
28
}
29
30   public void fatal(Object JavaDoc message) {
31   //
32
}
33
34   public void fatal(Object JavaDoc message, Throwable JavaDoc t) {
35   //
36
}
37
38   public void info(Object JavaDoc message) {
39   //
40
}
41
42   public void info(Object JavaDoc message, Throwable JavaDoc t) {
43   //
44
}
45
46   public void warn(Object JavaDoc message) {
47   //
48
}
49
50   public void warn(Object JavaDoc message, Throwable JavaDoc t) {
51   //
52
}
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 JavaDoc message) {
63   //
64
}
65
66   public void log(LogLevel level, Object JavaDoc message, Throwable JavaDoc t) {
67   //
68
}
69
70   public void setLevel(LogLevel level) {
71   //
72
}
73
74   public LogLevel getLevel() {
75     if (true) throw new ImplementMe();
76     return null;
77   }
78
79   public String JavaDoc getName() {
80     return "";
81   }
82
83 }
Popular Tags