View Javadoc
1   /*
2    * Copyright 2004-2023 the original author or authors.
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    *    https://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 com.ibatis.common.logging;
17  
18  /**
19   * The Interface Log.
20   */
21  public interface Log {
22  
23    /**
24     * Checks if is debug enabled.
25     *
26     * @return true, if is debug enabled
27     */
28    boolean isDebugEnabled();
29  
30    /**
31     * Error.
32     *
33     * @param s
34     *          the s
35     * @param e
36     *          the e
37     */
38    void error(String s, Throwable e);
39  
40    /**
41     * Error.
42     *
43     * @param s
44     *          the s
45     */
46    void error(String s);
47  
48    /**
49     * Debug.
50     *
51     * @param s
52     *          the s
53     */
54    public void debug(String s);
55  
56    /**
57     * Warn.
58     *
59     * @param s
60     *          the s
61     */
62    public void warn(String s);
63  
64  }