示例#1
0
	/**
	 * 获取系统日志实例
	 * @return SystemLog
	 */
	public static function getSystemLog () {
		if (!self::$SYS_LOG){
			include_once SUISHI_PHP_PATH . '/Log/SystemLog.class.php';
			$obj = new SystemLog();
			$obj->setLogFormat(SystemLog::FORMAT_JSON);
			$obj->setLogpath(SuiShiPHPConfig::getSysLogDir());
			self::$SYS_LOG = $obj;
		}
		return self::$SYS_LOG;
	}