1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.commons.logging.impl;
18
19 import java.io.Serializable;
20 import org.apache.commons.logging.Log;
21
22
23
24
25
26
27
28
29
30
31
32 public class NoOpLog implements Log, Serializable {
33 private static final long serialVersionUID = 561423906191706148L;
34
35
36 public NoOpLog() {
37 }
38
39
40 public NoOpLog(String name) {
41 }
42
43
44 public void trace(Object message) {
45 }
46
47
48 public void trace(Object message, Throwable t) {
49 }
50
51
52 public void debug(Object message) {
53 }
54
55
56 public void debug(Object message, Throwable t) {
57 }
58
59
60 public void info(Object message) {
61 }
62
63
64 public void info(Object message, Throwable t) {
65 }
66
67
68 public void warn(Object message) {
69 }
70
71
72 public void warn(Object message, Throwable t) {
73 }
74
75
76 public void error(Object message) {
77 }
78
79
80 public void error(Object message, Throwable t) {
81 }
82
83
84 public void fatal(Object message) {
85 }
86
87
88 public void fatal(Object message, Throwable t) {
89 }
90
91
92
93
94
95
96 public final boolean isDebugEnabled() {
97 return false;
98 }
99
100
101
102
103
104
105 public final boolean isErrorEnabled() {
106 return false;
107 }
108
109
110
111
112
113
114 public final boolean isFatalEnabled() {
115 return false;
116 }
117
118
119
120
121
122
123 public final boolean isInfoEnabled() {
124 return false;
125 }
126
127
128
129
130
131
132 public final boolean isTraceEnabled() {
133 return false;
134 }
135
136
137
138
139
140
141 public final boolean isWarnEnabled() {
142 return false;
143 }
144
145 }