1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.logging; |
21 |
|
|
22 |
|
import java.util.Arrays; |
23 |
|
import java.util.LinkedList; |
24 |
|
import java.util.List; |
25 |
|
import java.util.concurrent.ConcurrentLinkedQueue; |
26 |
|
|
27 |
|
import org.apache.commons.lang3.ArrayUtils; |
28 |
|
import org.slf4j.Marker; |
29 |
|
import org.xwiki.logging.event.LogEvent; |
30 |
|
|
31 |
|
|
32 |
|
@link |
33 |
|
|
34 |
|
@version |
35 |
|
@since |
36 |
|
|
|
|
| 90.5% |
Uncovered Elements: 16 (169) |
Complexity: 75 |
Complexity Density: 0.82 |
|
37 |
|
public class LogQueue extends ConcurrentLinkedQueue<LogEvent> implements Logger |
38 |
|
{ |
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
private static final long serialVersionUID = 1L; |
43 |
|
|
44 |
|
|
45 |
|
@link |
46 |
|
|
47 |
|
@param |
48 |
|
@since |
49 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
50 |
52 |
public void log(org.slf4j.Logger targetLogger)... |
51 |
|
{ |
52 |
52 |
for (LogEvent logEvent : this) { |
53 |
13 |
logEvent.log(targetLogger); |
54 |
|
} |
55 |
|
} |
56 |
|
|
57 |
|
|
58 |
|
@param |
59 |
|
@param |
60 |
|
@param |
61 |
|
@return@link |
62 |
|
@since |
63 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
64 |
0 |
public LogEvent addLogEvent(LogLevel level, String format, Object[] arguments)... |
65 |
|
{ |
66 |
0 |
return addLogEvent(null, level, format, arguments); |
67 |
|
} |
68 |
|
|
69 |
|
|
70 |
|
@param |
71 |
|
@param |
72 |
|
@param |
73 |
|
@param |
74 |
|
@return@link |
75 |
|
@since |
76 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (10) |
Complexity: 3 |
Complexity Density: 0.38 |
|
77 |
96 |
public LogEvent addLogEvent(Marker marker, LogLevel level, String format, Object[] arguments)... |
78 |
|
{ |
79 |
96 |
Object[] actualArray; |
80 |
96 |
Throwable throwable; |
81 |
96 |
if (arguments.length > 0 && arguments[arguments.length - 1] instanceof Throwable) { |
82 |
2 |
actualArray = Arrays.copyOf(arguments, arguments.length - 1); |
83 |
2 |
throwable = (Throwable) arguments[arguments.length - 1]; |
84 |
|
} else { |
85 |
94 |
actualArray = arguments; |
86 |
94 |
throwable = null; |
87 |
|
} |
88 |
|
|
89 |
96 |
return addLogEvent(marker, level, format, actualArray, throwable); |
90 |
|
} |
91 |
|
|
92 |
|
|
93 |
|
@param |
94 |
|
@param |
95 |
|
@param |
96 |
|
@param |
97 |
|
@return@link |
98 |
|
@since |
99 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
100 |
0 |
public LogEvent addLogEvent(LogLevel level, String format, Object[] arguments, Throwable throwable)... |
101 |
|
{ |
102 |
0 |
return addLogEvent(null, level, format, arguments, throwable); |
103 |
|
} |
104 |
|
|
105 |
|
|
106 |
|
@param |
107 |
|
@param |
108 |
|
@param |
109 |
|
@param |
110 |
|
@param |
111 |
|
@return@link |
112 |
|
@since |
113 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
114 |
108 |
public LogEvent addLogEvent(Marker marker, LogLevel level, String format, Object[] arguments, Throwable throwable)... |
115 |
|
{ |
116 |
108 |
LogEvent logEvent = LogUtils.newLogEvent(marker, level, format, arguments, throwable); |
117 |
108 |
log(logEvent); |
118 |
|
|
119 |
108 |
return logEvent; |
120 |
|
} |
121 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
122 |
4181 |
@Override... |
123 |
|
public void log(LogEvent logEvent) |
124 |
|
{ |
125 |
4181 |
add(logEvent); |
126 |
|
} |
127 |
|
|
128 |
|
|
129 |
|
|
130 |
|
|
131 |
|
@param |
132 |
|
@return |
133 |
|
@since |
134 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (7) |
Complexity: 2 |
Complexity Density: 0.4 |
|
135 |
146 |
public List<LogEvent> getLogs(LogLevel level)... |
136 |
|
{ |
137 |
146 |
List<LogEvent> levelLogs = new LinkedList<LogEvent>(); |
138 |
|
|
139 |
146 |
for (LogEvent log : this) { |
140 |
2015 |
if (log.getLevel() == level) { |
141 |
22 |
levelLogs.add(log); |
142 |
|
} |
143 |
|
} |
144 |
|
|
145 |
146 |
return levelLogs; |
146 |
|
} |
147 |
|
|
148 |
|
|
149 |
|
|
150 |
|
|
151 |
|
@param |
152 |
|
@return |
153 |
|
@since |
154 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (7) |
Complexity: 2 |
Complexity Density: 0.4 |
|
155 |
213 |
public List<LogEvent> getLogsFrom(LogLevel level)... |
156 |
|
{ |
157 |
213 |
List<LogEvent> levelLogs = new LinkedList<LogEvent>(); |
158 |
|
|
159 |
213 |
for (LogEvent log : this) { |
160 |
2458 |
if (log.getLevel().compareTo(level) <= 0) { |
161 |
39 |
levelLogs.add(log); |
162 |
|
} |
163 |
|
} |
164 |
|
|
165 |
213 |
return levelLogs; |
166 |
|
} |
167 |
|
|
168 |
|
|
169 |
|
|
170 |
|
|
171 |
|
@param |
172 |
|
@return |
173 |
|
@since |
174 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
175 |
14 |
public boolean containLogsFrom(LogLevel level)... |
176 |
|
{ |
177 |
14 |
for (LogEvent log : this) { |
178 |
9 |
if (log.getLevel().compareTo(level) <= 0) { |
179 |
4 |
return true; |
180 |
|
} |
181 |
|
} |
182 |
|
|
183 |
10 |
return false; |
184 |
|
} |
185 |
|
|
186 |
|
|
187 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
188 |
0 |
@Override... |
189 |
|
public String getName() |
190 |
|
{ |
191 |
0 |
return null; |
192 |
|
} |
193 |
|
|
194 |
|
|
195 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
196 |
1 |
@Override... |
197 |
|
public boolean isTraceEnabled() |
198 |
|
{ |
199 |
1 |
return true; |
200 |
|
} |
201 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
202 |
1 |
@Override... |
203 |
|
public void trace(String msg) |
204 |
|
{ |
205 |
1 |
trace(msg, ArrayUtils.EMPTY_OBJECT_ARRAY); |
206 |
|
} |
207 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
208 |
1 |
@Override... |
209 |
|
public void trace(String format, Object arg) |
210 |
|
{ |
211 |
1 |
trace((Marker) null, format, arg); |
212 |
|
} |
213 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
214 |
1 |
@Override... |
215 |
|
public void trace(String format, Object arg1, Object arg2) |
216 |
|
{ |
217 |
1 |
trace((Marker) null, format, arg1, arg2); |
218 |
|
} |
219 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
220 |
2 |
@Override... |
221 |
|
public void trace(String format, Object... arguments) |
222 |
|
{ |
223 |
2 |
trace((Marker) null, format, arguments); |
224 |
|
} |
225 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
226 |
1 |
@Override... |
227 |
|
public void trace(String msg, Throwable t) |
228 |
|
{ |
229 |
1 |
trace((Marker) null, msg, t); |
230 |
|
} |
231 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
232 |
0 |
@Override... |
233 |
|
public boolean isTraceEnabled(Marker marker) |
234 |
|
{ |
235 |
0 |
return true; |
236 |
|
} |
237 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
238 |
3 |
@Override... |
239 |
|
public void trace(Marker marker, String msg) |
240 |
|
{ |
241 |
3 |
trace(marker, msg, ArrayUtils.EMPTY_OBJECT_ARRAY); |
242 |
|
} |
243 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
244 |
2 |
@Override... |
245 |
|
public void trace(Marker marker, String format, Object arg) |
246 |
|
{ |
247 |
2 |
trace(marker, format, new Object[] { arg }); |
248 |
|
} |
249 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
250 |
2 |
@Override... |
251 |
|
public void trace(Marker marker, String format, Object arg1, Object arg2) |
252 |
|
{ |
253 |
2 |
trace(marker, format, new Object[] { arg1, arg2 }); |
254 |
|
} |
255 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
256 |
10 |
@Override... |
257 |
|
public void trace(Marker marker, String format, Object... arguments) |
258 |
|
{ |
259 |
10 |
addLogEvent(marker, LogLevel.TRACE, format, arguments); |
260 |
|
} |
261 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
262 |
2 |
@Override... |
263 |
|
public void trace(Marker marker, String msg, Throwable t) |
264 |
|
{ |
265 |
2 |
addLogEvent(marker, LogLevel.TRACE, msg, ArrayUtils.EMPTY_OBJECT_ARRAY, t); |
266 |
|
} |
267 |
|
|
268 |
|
|
269 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
270 |
1 |
@Override... |
271 |
|
public boolean isDebugEnabled() |
272 |
|
{ |
273 |
1 |
return true; |
274 |
|
} |
275 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
276 |
1 |
@Override... |
277 |
|
public void debug(String msg) |
278 |
|
{ |
279 |
1 |
debug((Marker) null, msg); |
280 |
|
} |
281 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
282 |
1 |
@Override... |
283 |
|
public void debug(String format, Object arg) |
284 |
|
{ |
285 |
1 |
debug((Marker) null, format, arg); |
286 |
|
} |
287 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
288 |
1 |
@Override... |
289 |
|
public void debug(String format, Object arg1, Object arg2) |
290 |
|
{ |
291 |
1 |
debug((Marker) null, format, arg1, arg2); |
292 |
|
} |
293 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
294 |
1 |
@Override... |
295 |
|
public void debug(String format, Object... arguments) |
296 |
|
{ |
297 |
1 |
debug((Marker) null, format, arguments); |
298 |
|
} |
299 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
300 |
1 |
@Override... |
301 |
|
public void debug(String msg, Throwable t) |
302 |
|
{ |
303 |
1 |
debug((Marker) null, msg, t); |
304 |
|
} |
305 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
306 |
0 |
@Override... |
307 |
|
public boolean isDebugEnabled(Marker marker) |
308 |
|
{ |
309 |
0 |
return true; |
310 |
|
} |
311 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
312 |
4 |
@Override... |
313 |
|
public void debug(Marker marker, String msg) |
314 |
|
{ |
315 |
4 |
debug(marker, msg, ArrayUtils.EMPTY_OBJECT_ARRAY); |
316 |
|
} |
317 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
318 |
2 |
@Override... |
319 |
|
public void debug(Marker marker, String format, Object arg) |
320 |
|
{ |
321 |
2 |
debug(marker, format, new Object[] { arg }); |
322 |
|
} |
323 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
324 |
2 |
@Override... |
325 |
|
public void debug(Marker marker, String format, Object arg1, Object arg2) |
326 |
|
{ |
327 |
2 |
debug(marker, format, new Object[] { arg1, arg2 }); |
328 |
|
} |
329 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
330 |
10 |
@Override... |
331 |
|
public void debug(Marker marker, String format, Object... arguments) |
332 |
|
{ |
333 |
10 |
addLogEvent(marker, LogLevel.DEBUG, format, arguments); |
334 |
|
} |
335 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
336 |
2 |
@Override... |
337 |
|
public void debug(Marker marker, String msg, Throwable t) |
338 |
|
{ |
339 |
2 |
addLogEvent(marker, LogLevel.DEBUG, msg, ArrayUtils.EMPTY_OBJECT_ARRAY, t); |
340 |
|
} |
341 |
|
|
342 |
|
|
343 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
344 |
1 |
@Override... |
345 |
|
public boolean isInfoEnabled() |
346 |
|
{ |
347 |
1 |
return true; |
348 |
|
} |
349 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
350 |
1 |
@Override... |
351 |
|
public void info(String msg) |
352 |
|
{ |
353 |
1 |
info((Marker) null, msg); |
354 |
|
} |
355 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
356 |
1 |
@Override... |
357 |
|
public void info(String format, Object arg) |
358 |
|
{ |
359 |
1 |
info((Marker) null, format, arg); |
360 |
|
} |
361 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
362 |
1 |
@Override... |
363 |
|
public void info(String format, Object arg1, Object arg2) |
364 |
|
{ |
365 |
1 |
info((Marker) null, format, arg1, arg2); |
366 |
|
} |
367 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
368 |
1 |
@Override... |
369 |
|
public void info(String format, Object... arguments) |
370 |
|
{ |
371 |
1 |
info((Marker) null, format, arguments); |
372 |
|
} |
373 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
374 |
1 |
@Override... |
375 |
|
public void info(String msg, Throwable t) |
376 |
|
{ |
377 |
1 |
info((Marker) null, msg, t); |
378 |
|
} |
379 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
380 |
0 |
@Override... |
381 |
|
public boolean isInfoEnabled(Marker marker) |
382 |
|
{ |
383 |
0 |
return true; |
384 |
|
} |
385 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
386 |
4 |
@Override... |
387 |
|
public void info(Marker marker, String msg) |
388 |
|
{ |
389 |
4 |
info(marker, msg, ArrayUtils.EMPTY_OBJECT_ARRAY); |
390 |
|
} |
391 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
392 |
2 |
@Override... |
393 |
|
public void info(Marker marker, String format, Object arg) |
394 |
|
{ |
395 |
2 |
info(marker, format, new Object[] { arg }); |
396 |
|
} |
397 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
398 |
2 |
@Override... |
399 |
|
public void info(Marker marker, String format, Object arg1, Object arg2) |
400 |
|
{ |
401 |
2 |
info(marker, format, new Object[] { arg1, arg2 }); |
402 |
|
} |
403 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
404 |
10 |
@Override... |
405 |
|
public void info(Marker marker, String format, Object... arguments) |
406 |
|
{ |
407 |
10 |
addLogEvent(marker, LogLevel.INFO, format, arguments); |
408 |
|
} |
409 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
410 |
2 |
@Override... |
411 |
|
public void info(Marker marker, String msg, Throwable t) |
412 |
|
{ |
413 |
2 |
addLogEvent(marker, LogLevel.INFO, msg, ArrayUtils.EMPTY_OBJECT_ARRAY, t); |
414 |
|
} |
415 |
|
|
416 |
|
|
417 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
418 |
1 |
@Override... |
419 |
|
public boolean isWarnEnabled() |
420 |
|
{ |
421 |
1 |
return true; |
422 |
|
} |
423 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
424 |
3 |
@Override... |
425 |
|
public void warn(String msg) |
426 |
|
{ |
427 |
3 |
warn((Marker) null, msg); |
428 |
|
} |
429 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
430 |
3 |
@Override... |
431 |
|
public void warn(String format, Object arg) |
432 |
|
{ |
433 |
3 |
warn((Marker) null, format, arg); |
434 |
|
} |
435 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
436 |
1 |
@Override... |
437 |
|
public void warn(String format, Object arg1, Object arg2) |
438 |
|
{ |
439 |
1 |
warn((Marker) null, format, arg1, arg2); |
440 |
|
} |
441 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
442 |
1 |
@Override... |
443 |
|
public void warn(String format, Object... arguments) |
444 |
|
{ |
445 |
1 |
warn((Marker) null, format, arguments); |
446 |
|
} |
447 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
448 |
1 |
@Override... |
449 |
|
public void warn(String msg, Throwable t) |
450 |
|
{ |
451 |
1 |
warn((Marker) null, msg, t); |
452 |
|
} |
453 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
454 |
0 |
@Override... |
455 |
|
public boolean isWarnEnabled(Marker marker) |
456 |
|
{ |
457 |
0 |
return true; |
458 |
|
} |
459 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
460 |
6 |
@Override... |
461 |
|
public void warn(Marker marker, String msg) |
462 |
|
{ |
463 |
6 |
warn(marker, msg, ArrayUtils.EMPTY_OBJECT_ARRAY); |
464 |
|
} |
465 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
466 |
4 |
@Override... |
467 |
|
public void warn(Marker marker, String format, Object arg) |
468 |
|
{ |
469 |
4 |
warn(marker, format, new Object[] { arg }); |
470 |
|
} |
471 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
472 |
2 |
@Override... |
473 |
|
public void warn(Marker marker, String format, Object arg1, Object arg2) |
474 |
|
{ |
475 |
2 |
warn(marker, format, new Object[] { arg1, arg2 }); |
476 |
|
} |
477 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
478 |
14 |
@Override... |
479 |
|
public void warn(Marker marker, String format, Object... arguments) |
480 |
|
{ |
481 |
14 |
addLogEvent(marker, LogLevel.WARN, format, arguments); |
482 |
|
} |
483 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
484 |
2 |
@Override... |
485 |
|
public void warn(Marker marker, String msg, Throwable t) |
486 |
|
{ |
487 |
2 |
addLogEvent(marker, LogLevel.WARN, msg, ArrayUtils.EMPTY_OBJECT_ARRAY, t); |
488 |
|
} |
489 |
|
|
490 |
|
|
491 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
492 |
1 |
@Override... |
493 |
|
public boolean isErrorEnabled() |
494 |
|
{ |
495 |
1 |
return true; |
496 |
|
} |
497 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
498 |
9 |
@Override... |
499 |
|
public void error(String msg) |
500 |
|
{ |
501 |
9 |
error((Marker) null, msg); |
502 |
|
} |
503 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
504 |
16 |
@Override... |
505 |
|
public void error(String format, Object arg) |
506 |
|
{ |
507 |
16 |
error((Marker) null, format, arg); |
508 |
|
} |
509 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
510 |
14 |
@Override... |
511 |
|
public void error(String format, Object arg1, Object arg2) |
512 |
|
{ |
513 |
14 |
error((Marker) null, format, arg1, arg2); |
514 |
|
} |
515 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
516 |
5 |
@Override... |
517 |
|
public void error(String format, Object... arguments) |
518 |
|
{ |
519 |
5 |
error((Marker) null, format, arguments); |
520 |
|
} |
521 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
522 |
2 |
@Override... |
523 |
|
public void error(String msg, Throwable t) |
524 |
|
{ |
525 |
2 |
error((Marker) null, msg, t); |
526 |
|
} |
527 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
528 |
0 |
@Override... |
529 |
|
public boolean isErrorEnabled(Marker marker) |
530 |
|
{ |
531 |
0 |
return true; |
532 |
|
} |
533 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
534 |
14 |
@Override... |
535 |
|
public void error(Marker marker, String msg) |
536 |
|
{ |
537 |
14 |
error(marker, msg, ArrayUtils.EMPTY_OBJECT_ARRAY); |
538 |
|
} |
539 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
540 |
17 |
@Override... |
541 |
|
public void error(Marker marker, String format, Object arg) |
542 |
|
{ |
543 |
17 |
error(marker, format, new Object[] { arg }); |
544 |
|
} |
545 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
546 |
15 |
@Override... |
547 |
|
public void error(Marker marker, String format, Object arg1, Object arg2) |
548 |
|
{ |
549 |
15 |
error(marker, format, new Object[] { arg1, arg2 }); |
550 |
|
} |
551 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
552 |
52 |
@Override... |
553 |
|
public void error(Marker marker, String format, Object... arguments) |
554 |
|
{ |
555 |
52 |
addLogEvent(marker, LogLevel.ERROR, format, arguments); |
556 |
|
} |
557 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
558 |
4 |
@Override... |
559 |
|
public void error(Marker marker, String msg, Throwable t) |
560 |
|
{ |
561 |
4 |
addLogEvent(marker, LogLevel.ERROR, msg, ArrayUtils.EMPTY_OBJECT_ARRAY, t); |
562 |
|
} |
563 |
|
} |