亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? logger.js

?? 圖書(shū)管理系統(tǒng)包括圖書(shū)的增加、刪除、修改等功能
?? JS
字號(hào):
/*	Copyright (c) 2004-2006, The Dojo Foundation	All Rights Reserved.	Licensed under the Academic Free License version 2.1 or above OR the	modified BSD license. For more information on Dojo licensing, see:		http://dojotoolkit.org/community/licensing.shtml*//*		This is the dojo logging facility, which is imported from nWidgets		(written by Alex Russell, CLA on file), which is patterned on the		Python logging module, which in turn has been heavily influenced by		log4j (execpt with some more pythonic choices, which we adopt as well).		While the dojo logging facilities do provide a set of familiar		interfaces, many of the details are changed to reflect the constraints		of the browser environment. Mainly, file and syslog-style logging		facilites are not provided, with HTTP POST and GET requests being the		only ways of getting data from the browser back to a server. Minimal		support for this (and XML serialization of logs) is provided, but may		not be of practical use in a deployment environment.		The Dojo logging classes are agnostic of any environment, and while		default loggers are provided for browser-based interpreter		environments, this file and the classes it define are explicitly		designed to be portable to command-line interpreters and other		ECMA-262v3 envrionments.	the logger needs to accomidate:		log "levels"		type identifiers		file?		message		tic/toc?	The logger should ALWAYS record:		time/date logged		message		type		level*/// TODO: conver documentation to javadoc style once we confirm that is our choice// TODO: define DTD for XML-formatted log messages// TODO: write XML Formatter class// TODO: write HTTP Handler which uses POST to send log lines/sections// Filename:	LogCore.js// Purpose:		a common logging infrastructure for dojo// Classes:		dojo.logging, dojo.logging.Logger, dojo.logging.Record, dojo.logging.LogFilter// Global Objects:	dojo.logging// Dependencies:	nonedojo.provide("dojo.logging.Logger");dojo.provide("dojo.log");dojo.require("dojo.lang");/*	A simple data structure class that stores information for and about	a logged event. Objects of this type are created automatically when	an event is logged and are the internal format in which information	about log events is kept.*/dojo.logging.Record = function(lvl, msg){	this.level = lvl;	this.message = msg;	this.time = new Date();	// FIXME: what other information can we receive/discover here?}// an empty parent (abstract) class which concrete filters should inherit from.dojo.logging.LogFilter = function(loggerChain){	this.passChain = loggerChain || "";	this.filter = function(record){		// FIXME: need to figure out a way to enforce the loggerChain		// restriction		return true; // pass all records	}}dojo.logging.Logger = function(){	this.cutOffLevel = 0;	this.propagate = true;	this.parent = null;	// storage for dojo.logging.Record objects seen and accepted by this logger	this.data = [];	this.filters = [];	this.handlers = [];}dojo.lang.extend(dojo.logging.Logger, {	argsToArr: function(args){		// utility function, reproduced from __util__ here to remove dependency		var ret = [];		for(var x=0; x<args.length; x++){			ret.push(args[x]);		}		return ret;	},	setLevel: function(lvl){		this.cutOffLevel = parseInt(lvl);	},	isEnabledFor: function(lvl){		return parseInt(lvl) >= this.cutOffLevel;	},	getEffectiveLevel: function(){		if((this.cutOffLevel==0)&&(this.parent)){			return this.parent.getEffectiveLevel();		}		return this.cutOffLevel;	},	addFilter: function(flt){		this.filters.push(flt);		return this.filters.length-1;	},	removeFilterByIndex: function(fltIndex){		if(this.filters[fltIndex]){			delete this.filters[fltIndex];			return true;		}		return false;	},	removeFilter: function(fltRef){		for(var x=0; x<this.filters.length; x++){			if(this.filters[x]===fltRef){				delete this.filters[x];				return true;			}		}		return false;	},	removeAllFilters: function(){		this.filters = []; // clobber all of them	},	filter: function(rec){		for(var x=0; x<this.filters.length; x++){			if((this.filters[x]["filter"])&&			   (!this.filters[x].filter(rec))||			   (rec.level<this.cutOffLevel)){				return false;			}		}		return true;	},	addHandler: function(hdlr){		this.handlers.push(hdlr);		return this.handlers.length-1;	},	handle: function(rec){		if((!this.filter(rec))||(rec.level<this.cutOffLevel)){ return false; }		for(var x=0; x<this.handlers.length; x++){			if(this.handlers[x]["handle"]){			   this.handlers[x].handle(rec);			}		}		// FIXME: not sure what to do about records to be propagated that may have		// been modified by the handlers or the filters at this logger. Should		// parents always have pristine copies? or is passing the modified record		// OK?		// if((this.propagate)&&(this.parent)){ this.parent.handle(rec); }		return true;	},	// the heart and soul of the logging system	log: function(lvl, msg){		if(	(this.propagate)&&(this.parent)&&			(this.parent.rec.level>=this.cutOffLevel)){			this.parent.log(lvl, msg);			return false;		}		// FIXME: need to call logging providers here!		this.handle(new dojo.logging.Record(lvl, msg));		return true;	},	// logger helpers	debug:function(msg){		return this.logType("DEBUG", this.argsToArr(arguments));	},	info: function(msg){		return this.logType("INFO", this.argsToArr(arguments));	},	warning: function(msg){		return this.logType("WARNING", this.argsToArr(arguments));	},	error: function(msg){		return this.logType("ERROR", this.argsToArr(arguments));	},	critical: function(msg){		return this.logType("CRITICAL", this.argsToArr(arguments));	},	exception: function(msg, e, squelch){		// FIXME: this needs to be modified to put the exception in the msg		// if we're on Moz, we can get the following from the exception object:		//		lineNumber		//		message		//		fileName		//		stack		//		name		// on IE, we get:		//		name		//		message (from MDA?)		//		number		//		description (same as message!)		if(e){			var eparts = [e.name, (e.description||e.message)];			if(e.fileName){				eparts.push(e.fileName);				eparts.push("line "+e.lineNumber);				// eparts.push(e.stack);			}			msg += " "+eparts.join(" : ");		}		this.logType("ERROR", msg);		if(!squelch){			throw e;		}	},	logType: function(type, args){		var na = [dojo.logging.log.getLevel(type)];		if(typeof args == "array"){			na = na.concat(args);		}else if((typeof args == "object")&&(args["length"])){			na = na.concat(this.argsToArr(args));			/* for(var x=0; x<args.length; x++){				na.push(args[x]);			} */		}else{			na = na.concat(this.argsToArr(arguments).slice(1));			/* for(var x=1; x<arguments.length; x++){				na.push(arguments[x]);			} */		}		return this.log.apply(this, na);	}});void(function(){	var ptype = dojo.logging.Logger.prototype;	ptype.warn = ptype.warning;	ptype.err = ptype.error;	ptype.crit = ptype.critical;})();// the Handler classdojo.logging.LogHandler = function(level){	this.cutOffLevel = (level) ? level : 0;	this.formatter = null; // FIXME: default formatter?	this.data = [];	this.filters = [];}dojo.logging.LogHandler.prototype.setFormatter = function(fmtr){	// FIXME: need to vet that it is indeed a formatter object	dojo.unimplemented("setFormatter");}dojo.logging.LogHandler.prototype.flush = function(){	dojo.unimplemented("flush");}dojo.logging.LogHandler.prototype.close = function(){	dojo.unimplemented("close");}dojo.logging.LogHandler.prototype.handleError = function(){	dojo.unimplemented("handleError");}dojo.logging.LogHandler.prototype.handle = function(record){	// emits the passed record if it passes this object's filters	if((this.filter(record))&&(record.level>=this.cutOffLevel)){		this.emit(record);	}}dojo.logging.LogHandler.prototype.emit = function(record){	// do whatever is necessaray to actually log the record	dojo.unimplemented("emit");}// set aliases since we don't want to inherit from dojo.logging.Loggervoid(function(){ // begin globals protection closure	var names = [		"setLevel", "addFilter", "removeFilterByIndex", "removeFilter",		"removeAllFilters", "filter"	];	var tgt = dojo.logging.LogHandler.prototype;	var src = dojo.logging.Logger.prototype;	for(var x=0; x<names.length; x++){		tgt[names[x]] = src[names[x]];	}})(); // end globals protection closuredojo.logging.log = new dojo.logging.Logger();// an associative array of logger objects. This object inherits from// a list of level names with their associated numeric levelsdojo.logging.log.levels = [ {"name": "DEBUG", "level": 1},						   {"name": "INFO", "level": 2},						   {"name": "WARNING", "level": 3},						   {"name": "ERROR", "level": 4},						   {"name": "CRITICAL", "level": 5} ];dojo.logging.log.loggers = {};dojo.logging.log.getLogger = function(name){	if(!this.loggers[name]){		this.loggers[name] = new dojo.logging.Logger();		this.loggers[name].parent = this;	}	return this.loggers[name];}dojo.logging.log.getLevelName = function(lvl){	for(var x=0; x<this.levels.length; x++){		if(this.levels[x].level == lvl){			return this.levels[x].name;		}	}	return null;}dojo.logging.log.addLevelName = function(name, lvl){	if(this.getLevelName(name)){		this.err("could not add log level "+name+" because a level with that name already exists");		return false;	}	this.levels.append({"name": name, "level": parseInt(lvl)});	return true;}dojo.logging.log.getLevel = function(name){	for(var x=0; x<this.levels.length; x++){		if(this.levels[x].name.toUpperCase() == name.toUpperCase()){			return this.levels[x].level;		}	}	return null;}// a default handler class, it simply saves all of the handle()'d records in// memory. Useful for attaching to with dojo.event.connect()dojo.logging.MemoryLogHandler = function(level, recordsToKeep, postType, postInterval){	// mixin style inheritance	dojo.logging.LogHandler.call(this, level);	// default is unlimited	this.numRecords = (typeof djConfig['loggingNumRecords'] != 'undefined') ? djConfig['loggingNumRecords'] : ((recordsToKeep) ? recordsToKeep : -1);	// 0=count, 1=time, -1=don't post TODO: move this to a better location for prefs	this.postType = (typeof djConfig['loggingPostType'] != 'undefined') ? djConfig['loggingPostType'] : ( postType || -1);	// milliseconds for time, interger for number of records, -1 for non-posting,	this.postInterval = (typeof djConfig['loggingPostInterval'] != 'undefined') ? djConfig['loggingPostInterval'] : ( postType || -1);	}// prototype inheritancedojo.logging.MemoryLogHandler.prototype = new dojo.logging.LogHandler();// FIXME// dojo.inherits(dojo.logging.MemoryLogHandler, // over-ride base-classdojo.logging.MemoryLogHandler.prototype.emit = function(record){	this.data.push(record);	if(this.numRecords != -1){		while(this.data.length>this.numRecords){			this.data.shift();		}	}}dojo.logging.logQueueHandler = new dojo.logging.MemoryLogHandler(0,50,0,10000);// actual logging event handlerdojo.logging.logQueueHandler.emit = function(record){	// we should probably abstract this in the future	var logStr = String(dojo.log.getLevelName(record.level)+": "+record.time.toLocaleTimeString())+": "+record.message;	if(!dj_undef("debug", dj_global)){		dojo.debug(logStr);	}else if((typeof dj_global["print"] == "function")&&(!dojo.render.html.capable)){		print(logStr);	}	this.data.push(record);	if(this.numRecords != -1){		while(this.data.length>this.numRecords){			this.data.shift();		}	}}dojo.logging.log.addHandler(dojo.logging.logQueueHandler);dojo.log = dojo.logging.log;

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩中文国产| 91麻豆6部合集magnet| 性久久久久久久久久久久| 亚洲色图另类专区| 亚洲激情在线播放| 亚洲国产精品一区二区久久| 亚洲成人激情av| 日韩精品视频网站| 麻豆精品一二三| 国产黄色精品网站| 99re在线视频这里只有精品| 91极品视觉盛宴| 在线综合+亚洲+欧美中文字幕| 日韩一级片网站| 久久久av毛片精品| 亚洲女子a中天字幕| 亚洲18色成人| 国产在线精品一区二区不卡了 | 在线视频欧美精品| 欧美在线观看视频一区二区三区| 欧美人妇做爰xxxⅹ性高电影| 日韩欧美不卡一区| 中文字幕免费不卡在线| 夜夜嗨av一区二区三区网页| 午夜视黄欧洲亚洲| 国产高清精品在线| 在线观看日韩av先锋影音电影院| 欧美精品v国产精品v日韩精品| 精品国产乱码久久久久久蜜臀| 欧美国产乱子伦| 强制捆绑调教一区二区| 精品亚洲porn| 91福利视频久久久久| 日韩一区二区在线观看视频| 国产精品久久久一本精品 | 国产黑丝在线一区二区三区| 色综合久久久久综合体| 欧美一区二区三区婷婷月色| 欧美国产精品一区二区三区| 亚洲成人一区二区在线观看| 国产夫妻精品视频| 91麻豆精品国产综合久久久久久| 久久久久久**毛片大全| 亚洲成人tv网| 日本久久电影网| 久久五月婷婷丁香社区| 日日摸夜夜添夜夜添精品视频 | 欧美揉bbbbb揉bbbbb| 久久人人超碰精品| 日日噜噜夜夜狠狠视频欧美人| 成人午夜精品在线| 欧美成人一区二区| 亚洲午夜电影在线| 色综合久久综合网97色综合| 久久午夜羞羞影院免费观看| 免费欧美日韩国产三级电影| 91久久精品国产91性色tv| 欧美国产成人精品| 国产伦精品一区二区三区免费迷| 欧美理论电影在线| 亚洲电影第三页| 一本大道久久a久久精二百| 中文字幕的久久| 国产成人免费视频一区| 久久亚洲精精品中文字幕早川悠里 | 一区二区三区在线视频观看58 | 国产福利一区二区三区视频在线 | 欧美色综合天天久久综合精品| 中文字幕第一区二区| 国产一区999| 久久亚洲春色中文字幕久久久| 亚洲v精品v日韩v欧美v专区| 欧美人与禽zozo性伦| 亚洲综合成人网| 欧美伊人久久大香线蕉综合69| 亚洲欧美二区三区| 精品视频资源站| 日本在线不卡视频一二三区| 日韩一卡二卡三卡国产欧美| 久久99精品一区二区三区三区| 日韩精品一区二区三区视频| 激情图区综合网| 国产午夜精品一区二区三区嫩草 | 国产成人午夜精品5599| 中文字幕乱码久久午夜不卡| 99久久精品国产毛片| 一区二区三区欧美激情| 在线播放日韩导航| 国内不卡的二区三区中文字幕| 国产日韩欧美精品一区| 成人h动漫精品一区二| 亚洲美女屁股眼交3| 欧美日韩国产一级二级| 久久av老司机精品网站导航| 久久一区二区视频| 色偷偷88欧美精品久久久| 亚洲电影欧美电影有声小说| 日韩欧美的一区二区| 成人一级黄色片| 亚洲无人区一区| 久久婷婷久久一区二区三区| 97久久超碰国产精品| 日韩成人一区二区| 国产欧美日韩视频在线观看| 欧洲一区在线电影| 国产一区二区三区四区五区入口| 国产精品毛片久久久久久久| 欧美精品自拍偷拍| 懂色中文一区二区在线播放| 伊人色综合久久天天人手人婷| 欧美一区二区三区在线视频 | 日韩成人精品在线| 国产精品欧美一区二区三区| 6080亚洲精品一区二区| 成人avav影音| 久久国产乱子精品免费女| 最新高清无码专区| 91福利精品视频| 9久草视频在线视频精品| 日韩精品影音先锋| 色呦呦国产精品| 国产一区二区h| 亚洲444eee在线观看| 国产精品美女久久久久久久久久久 | 五月婷婷激情综合网| 久久精品一区二区三区不卡牛牛 | 日本韩国精品在线| 国产suv精品一区二区三区| 日韩国产欧美三级| 亚洲激情图片一区| 国产精品灌醉下药二区| 久久影院午夜片一区| 欧美一三区三区四区免费在线看 | 精品一区二区三区免费毛片爱| 亚洲另类中文字| 国产精品二三区| 中文字幕欧美激情| 久久精品综合网| 精品国产伦一区二区三区观看体验| 成人avav在线| 成人国产在线观看| 国产成人在线看| 国产一区 二区| 精品亚洲国产成人av制服丝袜| 人妖欧美一区二区| 日本成人在线一区| 日韩av在线播放中文字幕| 一级做a爱片久久| 亚洲v中文字幕| 婷婷久久综合九色综合绿巨人 | 91在线观看视频| 97精品久久久久中文字幕 | 91麻豆精品国产91久久久久久| 一本久久a久久免费精品不卡| av中文字幕一区| 91蝌蚪porny九色| 欧美在线观看视频在线| 欧美日韩久久不卡| 日韩一区二区三区四区五区六区| 日韩精品在线一区| 国产三级精品视频| 国产精品久99| 亚洲成人免费看| 九一九一国产精品| 岛国av在线一区| 91电影在线观看| 欧美精品高清视频| 26uuu精品一区二区| 国产精品电影一区二区三区| 一区二区三区免费在线观看| 日本va欧美va精品| 成人做爰69片免费看网站| 色婷婷久久久亚洲一区二区三区| 欧美午夜影院一区| 精品欧美一区二区三区精品久久 | 国产精品国产三级国产a| 亚洲品质自拍视频| 日本午夜一本久久久综合| 国产精品一区二区免费不卡| 日本乱人伦一区| 精品国产91九色蝌蚪| 自拍偷拍国产精品| 久久99国产精品久久| www.日韩精品| 日韩视频在线一区二区| 国产精品国产三级国产普通话蜜臀 | 99久久精品久久久久久清纯| 制服丝袜av成人在线看| 欧美国产丝袜视频| 日韩高清不卡一区二区三区| 成人国产亚洲欧美成人综合网| 欧美日韩激情一区二区| 国产精品天干天干在观线| 日本中文一区二区三区| 91麻豆国产福利在线观看| 亚洲精品一区二区在线观看| 亚洲一级在线观看| 成人午夜视频福利| 久久综合狠狠综合久久综合88| 一区二区三区在线视频观看58|