All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jianggujin.logging.JLog Maven / Gradle / Ivy

Go to download

Java日志工具,自动加载已有的日志包,相当于日志工具的适配器

The newest version!
/**
 * Copyright 2018 jianggujin (www.jianggujin.com).
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.jianggujin.logging;

/**
 * 日志接口
 * 
 * @author jianggujin
 *
 */
public interface JLog {
   /**
    * 错误开启
    * 
    * @return
    */
   public boolean isErrorEnabled();

   /**
    * 信息开启
    * 
    * @return
    */
   public boolean isInfoEnabled();

   /**
    * 警告开启
    * 
    * @return
    */
   public boolean isWarnEnabled();

   /**
    * 调试开启
    * 
    * @return
    */
   public boolean isDebugEnabled();

   /**
    * 跟踪开启
    * 
    * @return
    */
   public boolean isTraceEnabled();

   /**
    * 错误
    * 
    * @param s
    */
   public void error(String s);

   /**
    * 错误
    * 
    * @param s
    * @param e
    */
   public void error(String s, Throwable e);

   /**
    * 调试
    * 
    * @param s
    */
   public void debug(String s);

   /**
    * 调试
    * 
    * @param s
    * @param e
    */
   public void debug(String s, Throwable e);

   /**
    * 跟踪
    * 
    * @param s
    */
   public void trace(String s);

   /**
    * 跟踪
    * 
    * @param s
    * @param e
    */
   public void trace(String s, Throwable e);

   /**
    * 警告
    * 
    * @param s
    */
   public void warn(String s);

   /**
    * 警告
    * 
    * @param s
    * @param e
    */
   public void warn(String s, Throwable e);

   /**
    * 信息
    * 
    * @param s
    */
   public void info(String s);

   /**
    * 信息
    * 
    * @param s
    * @param e
    */
   public void info(String s, Throwable e);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy