01: //========================================================================
02: //$Id: Logger.java,v 1.1 2005/11/14 16:55:09 gregwilkins Exp $
03: //Copyright 2004-2005 Mort Bay Consulting Pty. Ltd.
04: //------------------------------------------------------------------------
05: //Licensed under the Apache License, Version 2.0 (the "License");
06: //you may not use this file except in compliance with the License.
07: //You may obtain a copy of the License at
08: //http://www.apache.org/licenses/LICENSE-2.0
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:
16: package org.mortbay.log;
17:
18: /** Logging Facade
19: * A simple logging facade that is intended simply to capture the style
20: * of logging as used by Jetty.
21: *
22: */
23: public interface Logger {
24: public boolean isDebugEnabled();
25:
26: /** Mutator used to turn debug on programatically.
27: * Implementations operation in which case an appropriate
28: * warning message shall be generated.
29: */
30: public void setDebugEnabled(boolean enabled);
31:
32: public void info(String msg, Object arg0, Object arg1);
33:
34: public void debug(String msg, Throwable th);
35:
36: public void debug(String msg, Object arg0, Object arg1);
37:
38: public void warn(String msg, Object arg0, Object arg1);
39:
40: public void warn(String msg, Throwable th);
41:
42: public Logger getLogger(String name);
43: }
|