01: /**********************************************************************
02: Copyright (c) 2006 Andy Jefferson and others. All rights reserved.
03: Licensed under the Apache License, Version 2.0 (the "License");
04: you may not use this file except in compliance with the License.
05: You may obtain a copy of the License at
06:
07: http://www.apache.org/licenses/LICENSE-2.0
08:
09: Unless required by applicable law or agreed to in writing, software
10: distributed under the License is distributed on an "AS IS" BASIS,
11: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: See the License for the specific language governing permissions and
13: limitations under the License.
14:
15: Contributors:
16: ...
17: **********************************************************************/package org.jpox.util;
18:
19: /**
20: * Null implementation of a JPOXLogger.
21: * Simply does nothing :-)
22: *
23: * @version $Revision: 1.2 $
24: */
25: public class NullLogger extends JPOXLogger {
26: /**
27: * Constructor for a JPOXLogger that does nothing
28: */
29: public NullLogger(String logName) {
30: }
31:
32: public void debug(Object msg) {
33: }
34:
35: public void debug(Object msg, Throwable thr) {
36: }
37:
38: public void error(Object msg) {
39: }
40:
41: public void error(Object msg, Throwable thr) {
42: }
43:
44: public void fatal(Object msg) {
45: }
46:
47: public void fatal(Object msg, Throwable thr) {
48: }
49:
50: public void info(Object msg) {
51: }
52:
53: public void info(Object msg, Throwable thr) {
54: }
55:
56: public boolean isDebugEnabled() {
57: return false;
58: }
59:
60: public boolean isInfoEnabled() {
61: return false;
62: }
63:
64: public void warn(Object msg) {
65: }
66:
67: public void warn(Object msg, Throwable thr) {
68: }
69: }
|