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

📄 log.java

📁 中国移动定位引擎的客户端
💻 JAVA
字号:
package ffcs.logging;

public interface Log {
	    /**
	     * <p> Is debug logging currently enabled? </p>
	     *
	     * <p> Call this method to prevent having to perform expensive operations
	     * (for example, <code>String</code> concatenation)
	     * when the log level is more than debug. </p>
	     */
	    public boolean isDebugEnabled();
	    /**
	     * <p> Is error logging currently enabled? </p>
	     *
	     * <p> Call this method to prevent having to perform expensive operations
	     * (for example, <code>String</code> concatenation)
	     * when the log level is more than error. </p>
	     */
	    public boolean isErrorEnabled();

	    /**
	     * <p> Is fatal logging currently enabled? </p>
	     *
	     * <p> Call this method to prevent having to perform expensive operations
	     * (for example, <code>String</code> concatenation)
	     * when the log level is more than fatal. </p>
	     */
	    public boolean isFatalEnabled();

	    /**
	     * <p> Is info logging currently enabled? </p>
	     *
	     * <p> Call this method to prevent having to perform expensive operations
	     * (for example, <code>String</code> concatenation)
	     * when the log level is more than info. </p>
	     */
	    public boolean isInfoEnabled();


	    /**
	     * <p> Is trace logging currently enabled? </p>
	     *
	     * <p> Call this method to prevent having to perform expensive operations
	     * (for example, <code>String</code> concatenation)
	     * when the log level is more than trace. </p>
	     */
	    public boolean isTraceEnabled();


	    /**
	     * <p> Is warn logging currently enabled? </p>
	     *
	     * <p> Call this method to prevent having to perform expensive operations
	     * (for example, <code>String</code> concatenation)
	     * when the log level is more than warn. </p>
	     */
	    public boolean isWarnEnabled();


	    // -------------------------------------------------------- Logging Methods


	    /**
	     * <p> Log a message with trace log level. </p>
	     *
	     * @param message log this message
	     */
	    public void trace(Object message);


	    /**
	     * <p> Log an error with trace log level. </p>
	     *
	     * @param message log this message
	     * @param t log this cause
	     */
	    public void trace(Object message, Throwable t);


	    /**
	     * <p> Log a message with debug log level. </p>
	     *
	     * @param message log this message
	     */
	    public void debug(Object message);


	    /**
	     * <p> Log an error with debug log level. </p>
	     *
	     * @param message log this message
	     * @param t log this cause
	     */
	    public void debug(Object message, Throwable t);


	    /**
	     * <p> Log a message with info log level. </p>
	     *
	     * @param message log this message
	     */
	    public void info(Object message);


	    /**
	     * <p> Log an error with info log level. </p>
	     *
	     * @param message log this message
	     * @param t log this cause
	     */
	    public void info(Object message, Throwable t);


	    /**
	     * <p> Log a message with warn log level. </p>
	     *
	     * @param message log this message
	     */
	    public void warn(Object message);


	    /**
	     * <p> Log an error with warn log level. </p>
	     *
	     * @param message log this message
	     * @param t log this cause
	     */
	    public void warn(Object message, Throwable t);


	    /**
	     * <p> Log a message with error log level. </p>
	     *
	     * @param message log this message
	     */
	    public void error(Object message);
	    /**
	     Set the level of this Category. If you are passing any of
	     <code>Level.DEBUG</code>, <code>Level.INFO</code>,
	     <code>Level.WARN</code>, <code>Level.ERROR</code>,
	     <code>Level.FATAL</code> as a parameter, you need to case them as
	     Level.

	     <p>As in <pre> &nbsp;&nbsp;&nbsp;logger.setLevel((Level) Level.DEBUG); </pre>


	     <p>Null values are admitted.  */
	   //public  void setLevel(Level level) ;

	    /**
	     * <p> Log an error with error log level. </p>
	     *
	     * @param message log this message
	     * @param t log this cause
	     */
	    public void error(Object message, Throwable t);
	    
	    
	    public void infoAndAlert(Object message, Throwable t,int source,int errorNo);

	    public void warnAndAlert(Object message, Throwable t,int source,int errorNo);
	    /**
	     * 向网管发送告警信息,并且写日志
	     * @param message 消息对象
	     * @param t Throwable异常实例
	     * @param source 事件源(一般为模块编号)
	     * @param errorNo 错误编号
	     * @param host 告警服务器IP
	     * @param port 告警服务器端口
	     */
	    public void errorAndAlert(Object message, Throwable t, int source,int errorNo);
	   
	    public void infoAndAlert(Object message, Throwable t,int source,int errorNo,String host,int port);

	    public void warnAndAlert(Object message, Throwable t,int source,int errorNo,String host,int port);
	    
	    public void errorAndAlert(Object message, Throwable t, int source,int errorNo,String host,int port);
        
	    public void clearAlert(int source,int errorNo,Object message);
	   /**
	    * 告警清除,用于清除先前的告警信息
	    * 
	    * @param source 事件源(一般为模块编号)
	    * @param errorNo 错误编号
	    * @param message 消息对象
	    * @param host 告警服务器IP
	    * @param port 告警服务器端口
	    */
	    public void clearAlert(int source,int errorNo,Object message,String host,int port);
}

⌨️ 快捷键说明

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