loggerinf.java

来自「这是一个mvc模式」· Java 代码 · 共 83 行

JAVA
83
字号
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 + =
减小字号Ctrl + -
显示快捷键?