1 package uk.org.lidalia.slf4jext;
2
3 import org.slf4j.Marker;
4
5
6
7
8
9
10
11
12 @SuppressWarnings({ "PMD.ExcessivePublicCount", "PMD.TooManyMethods" })
13 public class Logger implements org.slf4j.Logger {
14
15 private final org.slf4j.Logger decorated;
16
17
18
19
20
21
22
23
24 public Logger(final org.slf4j.Logger decorated) {
25 this.decorated = decorated;
26 }
27
28
29
30
31
32
33
34
35
36
37
38 public boolean isEnabled(final Level level) {
39 return level.isEnabled(decorated);
40 }
41
42
43
44
45
46
47
48
49
50
51 public void log(final Level level, final String msg) {
52 level.log(decorated, msg);
53 }
54
55
56
57
58
59
60
61
62
63
64
65 public void log(final Level level, final String format, final Object arg) {
66 level.log(decorated, format, arg);
67 }
68
69
70
71
72
73
74
75
76
77
78
79
80 public void log(final Level level, final String format, final Object arg1, final Object arg2) {
81 level.log(decorated, format, arg1, arg2);
82 }
83
84
85
86
87
88
89
90
91
92
93
94 public void log(final Level level, final String format, final Object... arguments) {
95 level.log(decorated, format, arguments);
96 }
97
98
99
100
101
102
103
104
105
106
107
108 public void log(final Level level, final String msg, final Throwable throwable) {
109 level.log(decorated, msg, throwable);
110 }
111
112
113
114
115
116
117
118
119
120
121
122
123
124 public boolean isEnabled(final Level level, final Marker marker) {
125 return level.isEnabled(decorated, marker);
126 }
127
128
129
130
131
132
133
134
135
136
137
138 public void log(final Level level, final Marker marker, final String msg) {
139 level.log(decorated, marker, msg);
140 }
141
142
143
144
145
146
147
148
149
150
151
152
153 public void log(final Level level, final Marker marker, final String format, final Object arg) {
154 level.log(decorated, marker, format, arg);
155 }
156
157
158
159
160
161
162
163
164
165
166
167
168
169 public void log(final Level level, final Marker marker, final String format, final Object arg1, final Object arg2) {
170 level.log(decorated, marker, format, arg1, arg2);
171 }
172
173
174
175
176
177
178
179
180
181
182
183
184 public void log(final Level level, final Marker marker, final String format, final Object... arguments) {
185 level.log(decorated, marker, format, arguments);
186 }
187
188
189
190
191
192
193
194
195
196
197
198
199 public void log(final Level level, final Marker marker, final String msg, final Throwable throwable) {
200 level.log(decorated, marker, msg, throwable);
201 }
202
203
204
205 @Override
206 public String getName() {
207 return decorated.getName();
208 }
209
210 @Override
211 public boolean isTraceEnabled() {
212 return decorated.isTraceEnabled();
213 }
214
215 @Override
216 public void trace(final String msg) {
217 decorated.trace(msg);
218 }
219
220 @Override
221 public void trace(final String format, final Object arg) {
222 decorated.trace(format, arg);
223 }
224
225 @Override
226 public void trace(final String format, final Object arg1, final Object arg2) {
227 decorated.trace(format, arg1, arg2);
228 }
229
230 @Override
231 public void trace(final String format, final Object... arguments) {
232 decorated.trace(format, arguments);
233 }
234
235 @Override
236 public void trace(final String msg, final Throwable throwable) {
237 decorated.trace(msg, throwable);
238 }
239
240 @Override
241 public boolean isTraceEnabled(final Marker marker) {
242 return decorated.isTraceEnabled(marker);
243 }
244
245 @Override
246 public void trace(final Marker marker, final String msg) {
247 decorated.trace(marker, msg);
248 }
249
250 @Override
251 public void trace(final Marker marker, final String format, final Object arg) {
252 decorated.trace(marker, format, arg);
253 }
254
255 @Override
256 public void trace(final Marker marker, final String format, final Object arg1, final Object arg2) {
257 decorated.trace(marker, format, arg1, arg2);
258 }
259
260 @Override
261 public void trace(final Marker marker, final String format, final Object... arguments) {
262 decorated.trace(marker, format, arguments);
263 }
264
265 @Override
266 public void trace(final Marker marker, final String msg, final Throwable throwable) {
267 decorated.trace(marker, msg, throwable);
268 }
269
270 @Override
271 public boolean isDebugEnabled() {
272 return decorated.isDebugEnabled();
273 }
274
275 @Override
276 public void debug(final String msg) {
277 decorated.debug(msg);
278 }
279
280 @Override
281 public void debug(final String format, final Object arg) {
282 decorated.debug(format, arg);
283 }
284
285 @Override
286 public void debug(final String format, final Object arg1, final Object arg2) {
287 decorated.debug(format, arg1, arg2);
288 }
289
290 @Override
291 public void debug(final String format, final Object... arguments) {
292 decorated.debug(format, arguments);
293 }
294
295 @Override
296 public void debug(final String msg, final Throwable throwable) {
297 decorated.debug(msg, throwable);
298 }
299
300 @Override
301 public boolean isDebugEnabled(final Marker marker) {
302 return decorated.isDebugEnabled(marker);
303 }
304
305 @Override
306 public void debug(final Marker marker, final String msg) {
307 decorated.debug(marker, msg);
308 }
309
310 @Override
311 public void debug(final Marker marker, final String format, final Object arg) {
312 decorated.debug(marker, format, arg);
313 }
314
315 @Override
316 public void debug(final Marker marker, final String format, final Object arg1, final Object arg2) {
317 decorated.debug(marker, format, arg1, arg2);
318 }
319
320 @Override
321 public void debug(final Marker marker, final String format, final Object... arguments) {
322 decorated.debug(marker, format, arguments);
323 }
324
325 @Override
326 public void debug(final Marker marker, final String msg, final Throwable throwable) {
327 decorated.debug(marker, msg, throwable);
328 }
329
330 @Override
331 public boolean isInfoEnabled() {
332 return decorated.isInfoEnabled();
333 }
334
335 @Override
336 public void info(final String msg) {
337 decorated.info(msg);
338 }
339
340 @Override
341 public void info(final String format, final Object arg) {
342 decorated.info(format, arg);
343 }
344
345 @Override
346 public void info(final String format, final Object arg1, final Object arg2) {
347 decorated.info(format, arg1, arg2);
348 }
349
350 @Override
351 public void info(final String format, final Object... arguments) {
352 decorated.info(format, arguments);
353 }
354
355 @Override
356 public void info(final String msg, final Throwable throwable) {
357 decorated.info(msg, throwable);
358 }
359
360 @Override
361 public boolean isInfoEnabled(final Marker marker) {
362 return decorated.isInfoEnabled(marker);
363 }
364
365 @Override
366 public void info(final Marker marker, final String msg) {
367 decorated.info(marker, msg);
368 }
369
370 @Override
371 public void info(final Marker marker, final String format, final Object arg) {
372 decorated.info(marker, format, arg);
373 }
374
375 @Override
376 public void info(final Marker marker, final String format, final Object arg1, final Object arg2) {
377 decorated.info(marker, format, arg1, arg2);
378 }
379
380 @Override
381 public void info(final Marker marker, final String format, final Object... arguments) {
382 decorated.info(marker, format, arguments);
383 }
384
385 @Override
386 public void info(final Marker marker, final String msg, final Throwable throwable) {
387 decorated.info(marker, msg, throwable);
388 }
389
390 @Override
391 public boolean isWarnEnabled() {
392 return decorated.isWarnEnabled();
393 }
394
395 @Override
396 public void warn(final String msg) {
397 decorated.warn(msg);
398 }
399
400 @Override
401 public void warn(final String format, final Object arg) {
402 decorated.warn(format, arg);
403 }
404
405 @Override
406 public void warn(final String format, final Object... arguments) {
407 decorated.warn(format, arguments);
408 }
409
410 @Override
411 public void warn(final String format, final Object arg1, final Object arg2) {
412 decorated.warn(format, arg1, arg2);
413 }
414
415 @Override
416 public void warn(final String msg, final Throwable throwable) {
417 decorated.warn(msg, throwable);
418 }
419
420 @Override
421 public boolean isWarnEnabled(final Marker marker) {
422 return decorated.isWarnEnabled(marker);
423 }
424
425 @Override
426 public void warn(final Marker marker, final String msg) {
427 decorated.warn(marker, msg);
428 }
429
430 @Override
431 public void warn(final Marker marker, final String format, final Object arg) {
432 decorated.warn(marker, format, arg);
433 }
434
435 @Override
436 public void warn(final Marker marker, final String format, final Object arg1, final Object arg2) {
437 decorated.warn(marker, format, arg1, arg2);
438 }
439
440 @Override
441 public void warn(final Marker marker, final String format, final Object... arguments) {
442 decorated.warn(marker, format, arguments);
443 }
444
445 @Override
446 public void warn(final Marker marker, final String msg, final Throwable throwable) {
447 decorated.warn(marker, msg, throwable);
448 }
449
450 @Override
451 public boolean isErrorEnabled() {
452 return decorated.isErrorEnabled();
453 }
454
455 @Override
456 public void error(final String msg) {
457 decorated.error(msg);
458 }
459
460 @Override
461 public void error(final String format, final Object arg) {
462 decorated.error(format, arg);
463 }
464
465 @Override
466 public void error(final String format, final Object arg1, final Object arg2) {
467 decorated.error(format, arg1, arg2);
468 }
469
470 @Override
471 public void error(final String format, final Object... arguments) {
472 decorated.error(format, arguments);
473 }
474
475 @Override
476 public void error(final String msg, final Throwable throwable) {
477 decorated.error(msg, throwable);
478 }
479
480 @Override
481 public boolean isErrorEnabled(final Marker marker) {
482 return decorated.isErrorEnabled(marker);
483 }
484
485 @Override
486 public void error(final Marker marker, final String msg) {
487 decorated.error(marker, msg);
488 }
489
490 @Override
491 public void error(final Marker marker, final String format, final Object arg) {
492 decorated.error(marker, format, arg);
493 }
494
495 @Override
496 public void error(final Marker marker, final String format, final Object arg1, final Object arg2) {
497 decorated.error(marker, format, arg1, arg2);
498 }
499
500 @Override
501 public void error(final Marker marker, final String format, final Object... arguments) {
502 decorated.error(marker, format, arguments);
503 }
504
505 @Override
506 public void error(final Marker marker, final String msg, final Throwable throwable) {
507 decorated.error(marker, msg, throwable);
508 }
509 }