KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > logging > tccl > custom > MyLog


1 /*
2  * Copyright 2006 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.commons.logging.tccl.custom;
17
18 import org.apache.commons.logging.Log;
19
20 public class MyLog implements Log {
21
22     public MyLog(String JavaDoc category) {}
23
24     public boolean isDebugEnabled() { return false; }
25     public boolean isErrorEnabled() { return false; }
26     public boolean isFatalEnabled() { return false; }
27     public boolean isInfoEnabled() { return false; }
28     public boolean isTraceEnabled() { return false; }
29     public boolean isWarnEnabled() { return false; }
30
31     public void trace(Object JavaDoc message) {}
32     public void trace(Object JavaDoc message, Throwable JavaDoc t) {}
33     public void debug(Object JavaDoc message) {}
34     public void debug(Object JavaDoc message, Throwable JavaDoc t) {}
35     public void info(Object JavaDoc message) {}
36     public void info(Object JavaDoc message, Throwable JavaDoc t) {}
37     public void warn(Object JavaDoc message) {}
38     public void warn(Object JavaDoc message, Throwable JavaDoc t) {}
39     public void error(Object JavaDoc message) {}
40     public void error(Object JavaDoc message, Throwable JavaDoc t) {}
41     public void fatal(Object JavaDoc message) {}
42     public void fatal(Object JavaDoc message, Throwable JavaDoc t) {}
43 }
44
Popular Tags