01: package net.javacoding.jspider.core.logging.impl;
02:
03: import net.javacoding.jspider.core.logging.Log;
04:
05: /**
06: * Log implemenation that does no logging at all. All incoming log
07: * messages are simply discarded.
08: *
09: * $Id: DevNullLogImpl.java,v 1.2 2003/03/27 17:44:05 vanrogu Exp $
10: *
11: * @author Günther Van Roey
12: */
13: public class DevNullLogImpl implements Log {
14:
15: public boolean isDebugEnabled() {
16: return false;
17: }
18:
19: public boolean isErrorEnabled() {
20: return false;
21: }
22:
23: public boolean isFatalEnabled() {
24: return false;
25: }
26:
27: public boolean isInfoEnabled() {
28: return false;
29: }
30:
31: public boolean isTraceEnabled() {
32: return false;
33: }
34:
35: public boolean isWarnEnabled() {
36: return false;
37: }
38:
39: public void trace(Object o) {
40: }
41:
42: public void trace(Object o, Throwable throwable) {
43: }
44:
45: public void debug(Object o) {
46: }
47:
48: public void debug(Object o, Throwable throwable) {
49: }
50:
51: public void info(Object o) {
52: }
53:
54: public void info(Object o, Throwable throwable) {
55: }
56:
57: public void warn(Object o) {
58: }
59:
60: public void warn(Object o, Throwable throwable) {
61: }
62:
63: public void error(Object o) {
64: }
65:
66: public void error(Object o, Throwable throwable) {
67: }
68:
69: public void fatal(Object o) {
70: }
71:
72: public void fatal(Object o, Throwable throwable) {
73: }
74: }
|