01: /*
02: * Copyright (C) The DNA Group. All rights reserved.
03: *
04: * This software is published under the terms of the DNA
05: * Software License version 1.1, a copy of which has been included
06: * with this distribution in the LICENSE.txt file.
07: */
08: package org.codehaus.dna;
09:
10: import org.codehaus.dna.Logger;
11:
12: /**
13: *
14: * @author Peter Donald
15: * @version $Revision: 1.2 $ $Date: 2004/05/01 09:51:48 $
16: */
17: class MockLogger implements Logger {
18: private final String m_name;
19:
20: MockLogger(String name) {
21: m_name = name;
22: }
23:
24: String getName() {
25: return m_name;
26: }
27:
28: public Logger getChildLogger(final String name) {
29: return new MockLogger(getName() + "." + name);
30: }
31:
32: public void trace(String message) {
33: }
34:
35: public void trace(String message, Throwable throwable) {
36: }
37:
38: public boolean isTraceEnabled() {
39: return false;
40: }
41:
42: public void debug(String message) {
43: }
44:
45: public void debug(String message, Throwable throwable) {
46: }
47:
48: public boolean isDebugEnabled() {
49: return false;
50: }
51:
52: public void info(String message) {
53: }
54:
55: public void info(String message, Throwable throwable) {
56: }
57:
58: public boolean isInfoEnabled() {
59: return false;
60: }
61:
62: public void warn(String message) {
63: }
64:
65: public void warn(String message, Throwable throwable) {
66: }
67:
68: public boolean isWarnEnabled() {
69: return false;
70: }
71:
72: public void error(String message) {
73: }
74:
75: public void error(String message, Throwable throwable) {
76: }
77:
78: public boolean isErrorEnabled() {
79: return false;
80: }
81: }
|