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

📄 commonlog.java

📁 一个管理系统 用java作的
💻 JAVA
字号:
/*
 *  僔僗僥儉丂丂丗 嶳廏HR僔僗僥儉奐敪
 *  僒僽僔僗僥儉丗 WEB僔僗僥儉
 *
 *   VER    丂曄峏擔     丂晹壽      扴摉幰  丂曄峏撪梕
 *  -----------------------------------------------------------------
 *  V1.00 丂丂${date} (ShanXiu丂Soft)  Tuwenjie   弶斉
 *
 *       (C) Copyright SHANXIU CORPORATION 2006
 *                     All Rights Reserved.
 *
 */


package net.shanxiu.HR.entity;

import org.apache.log4j.Logger;

/**
 * CommonLog
 */

/******************************************************************************
 * 僋儔僗偺奣梫丗log show class         
 * 
 * @author  嶌惉幰 tuwenjie
 * @version 1.0
*******************************************************************************
 */
public class CommonLog {
    
    /** the only instance of the this class */
	private static final CommonLog commonLog = new CommonLog();
	
	/** logger for TELL_MG */
	private final Logger mgLogger;
	
	private static final String errorStrBeforeError =" dd";
	
	/**
	 * private constructor
	 *
	 */
	private CommonLog(){
		mgLogger = Logger.getLogger("TELL_MG");
	}
	
	/**
	 * get the instance of the class.
	 * @return CommonLog
	 */
	public static CommonLog getInstance(){
		return commonLog;
	}
	/**
	 * log error information for TELL_MG.
	 * @param msg message
	 */
	public void logMgInfo(String msg){
	    mgLogger.info(msg);
	}
	
	/**
	 * log error information and the throwable for TELL_MG.
	 * @param msg message
	 * @param t Throwable
	 */
	public void logMgError(String msg, Throwable t){
	    mgLogger.error(msg, t);
	}
}

⌨️ 快捷键说明

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