log.java

来自「java的团队合作代码」· Java 代码 · 共 62 行

JAVA
62
字号
package com.briup;

import com.briup.exception.LogException;

/**
 * @author qinry
 * @company Briup Technology Inc,.(Shanghai)
 * @date Mar 26, 2008 2:19:12 PM
 */
public interface Log {

	/**
	 * output Debug level log
	 * 
	 * @param log
	 *            the content of log
	 */
	public void writeDebug(String log);

	/**
	 * output Info level log
	 * 
	 * @param log
	 *            the content of log
	 */
	public void writeInfo(String log);

	/**
	 * output Warning level log
	 * 
	 * @param log
	 *            the content of log
	 */
	public void writeWarn(String log);

	/**
	 * output Error level log
	 * 
	 * @param log
	 *            the content of log
	 */
	public void writeError(String log);

	/**
	 * output Fatal level log
	 * 
	 * @param log
	 *            the content of log
	 */
	public void writeFatal(String log);

	/**
	 * output the log by level
	 * 
	 * @param log
	 *            the content of log
	 * @param levelGrade
	 *            the level of log
	 */
	public void write(String log, int levelGrade) throws LogException;
}

⌨️ 快捷键说明

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