⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 loggerinf.java

📁 这是一个mvc模式
💻 JAVA
字号:
package jsp.tags.dapact.util;
/**
 * Title:        Data Aware Processing And Control Tags
 * Description:  Tag library for the processing and controlling the input and output of data.
 * Copyright:    LGPL (http://www.gnu.org/copyleft/lesser.html)
 * Compile Date: @compile_date@      
 * @author Allen M Servedio
 * @amp_sign@version @VERSION@
 */

/**
 * Interface to classes that want to implement logging have to implement. This is how
 * an external logging class can replace the default one.
 */
public interface LoggerInf
{
  /**
   * Different types of log entries.
   */
  public interface LogTypes
  {
    /**
     * Information type.
     */
    public static final int INFO = 0;
    /**
     * Error type.
     */
    public static final int ERROR = 1;
    /**
     * Warning type.
     */
    public static final int WARNING = 2;
  }

  /**
   * Log a Throwable - since no type is specified, this should be considered an error.
   *
   * @param e the Throwable to log.
   */
  public void log(Throwable e);

  /**
   * Log a message - since no type is specified, this should be considered info.
   *
   * @param msg a message to log.
   */
  public void log(String msg);

  /**
   * Log a Throwable with an extra message - since no type is specified, this should be considered an error.
   *
   * @param msg an extra message to include with the Throwable.
   * @param e the Throwable to log.
   */
  public void log(String msg, Throwable e);

  /**
   * Log a Throwable with a log type.
   *
   * @param type one of the log types specified in the LogTypes interface.
   * @param e the Throwable to log.
   */
  public void log(int type, Throwable e);

  /**
   * Log a Throwable with an extra message.
   *
   * @param type one of the log types specified in the LogTypes interface.
   * @param msg an extra message to include with the Throwable.
   * @param e the Throwable to log.
   */
  public void log(int type, String msg, Throwable e);

  /**
   * Log a message.
   *
   * @param type one of the log types specified in the LogTypes interface.
   * @param msg an extra message to include with the Throwable.
   */
  public void log(int type, String msg);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -