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