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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? levelrangefilter.cs

?? 詳細講述了數據庫編程
?? CS
字號:
#region Copyright & License
//
// Copyright 2001-2005 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#endregion

using System;

using log4net;
using log4net.Core;
using log4net.Util;

namespace log4net.Filter
{
	/// <summary>
	/// This is a simple filter based on <see cref="Level"/> matching.
	/// </summary>
	/// <remarks>
	/// <para>
	/// The filter admits three options <see cref="LevelMin"/> and <see cref="LevelMax"/>
	/// that determine the range of priorities that are matched, and
	/// <see cref="AcceptOnMatch"/>. If there is a match between the range
	/// of priorities and the <see cref="Level"/> of the <see cref="LoggingEvent"/>, then the 
	/// <see cref="Decide"/> method returns <see cref="FilterDecision.Accept"/> in case the <see cref="AcceptOnMatch"/> 
	/// option value is set to <c>true</c>, if it is <c>false</c>
	/// then <see cref="FilterDecision.Deny"/> is returned. If there is no match, <see cref="FilterDecision.Deny"/> is returned.
	/// </para>
	/// </remarks>
	/// <author>Nicko Cadell</author>
	/// <author>Gert Driesen</author>
	public class LevelRangeFilter : FilterSkeleton
	{
		#region Member Variables

		/// <summary>
		/// Flag to indicate the behavior when matching a <see cref="Level"/>
		/// </summary>
		private bool m_acceptOnMatch = true;

		/// <summary>
		/// the minimum <see cref="Level"/> value to match
		/// </summary>
		private Level m_levelMin;

		/// <summary>
		/// the maximum <see cref="Level"/> value to match
		/// </summary>
		private Level m_levelMax;

		#endregion

		#region Constructors

		/// <summary>
		/// Default constructor
		/// </summary>
		public LevelRangeFilter()
		{
		}

		#endregion

		/// <summary>
		/// <see cref="FilterDecision.Accept"/> when matching <see cref="LevelMin"/> and <see cref="LevelMax"/>
		/// </summary>
		/// <remarks>
		/// <para>
		/// The <see cref="AcceptOnMatch"/> property is a flag that determines
		/// the behavior when a matching <see cref="Level"/> is found. If the
		/// flag is set to true then the filter will <see cref="FilterDecision.Accept"/> the 
		/// logging event, otherwise it will <see cref="FilterDecision.Neutral"/> the event.
		/// </para>
		/// <para>
		/// The default is <c>true</c> i.e. to <see cref="FilterDecision.Accept"/> the event.
		/// </para>
		/// </remarks>
		public bool AcceptOnMatch
		{
			get { return m_acceptOnMatch; }
			set { m_acceptOnMatch = value; }
		}

		/// <summary>
		/// Set the minimum matched <see cref="Level"/>
		/// </summary>
		/// <remarks>
		/// <para>
		/// The minimum level that this filter will attempt to match against the 
		/// <see cref="LoggingEvent"/> level. If a match is found then
		/// the result depends on the value of <see cref="AcceptOnMatch"/>.
		/// </para>
		/// </remarks>
		public Level LevelMin
		{
			get { return m_levelMin; }
			set { m_levelMin = value; }
		}

		/// <summary>
		/// Sets the maximum matched <see cref="Level"/>
		/// </summary>
		/// <remarks>
		/// <para>
		/// The maximum level that this filter will attempt to match against the 
		/// <see cref="LoggingEvent"/> level. If a match is found then
		/// the result depends on the value of <see cref="AcceptOnMatch"/>.
		/// </para>
		/// </remarks>
		public Level LevelMax
		{
			get { return m_levelMax; }
			set { m_levelMax = value; }
		}

		#region Override implementation of FilterSkeleton

		/// <summary>
		/// Check if the event should be logged.
		/// </summary>
		/// <param name="loggingEvent">the logging event to check</param>
		/// <returns>see remarks</returns>
		/// <remarks>
		/// <para>
		/// If the <see cref="Level"/> of the logging event is outside the range
		/// matched by this filter then <see cref="FilterDecision.Deny"/>
		/// is returned. If the <see cref="Level"/> is matched then the value of
		/// <see cref="AcceptOnMatch"/> is checked. If it is true then
		/// <see cref="FilterDecision.Accept"/> is returned, otherwise
		/// <see cref="FilterDecision.Neutral"/> is returned.
		/// </para>
		/// </remarks>
		override public FilterDecision Decide(LoggingEvent loggingEvent) 
		{
			if (loggingEvent == null)
			{
				throw new ArgumentNullException("loggingEvent");
			}

			if (m_levelMin != null) 
			{
				if (loggingEvent.Level < m_levelMin) 
				{
					// level of event is less than minimum
					return FilterDecision.Deny;
				}
			}

			if (m_levelMax != null) 
			{
				if (loggingEvent.Level > m_levelMax) 
				{
					// level of event is greater than maximum
					return FilterDecision.Deny;
				}
			}

			if (m_acceptOnMatch) 
			{
				// this filter set up to bypass later filters and always return
				// accept if level in range
				return FilterDecision.Accept;
			}
			else 
			{
				// event is ok for this filter; allow later filters to have a look..
				return FilterDecision.Neutral;
			}
		}

		#endregion
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一卡二卡三卡四卡| 免费视频一区二区| 亚洲最大成人综合| 日韩**一区毛片| 国产一区二区三区精品视频| 99国产精品99久久久久久| 欧美性猛交xxxx乱大交退制版 | 国产精品电影一区二区| 亚洲综合成人在线视频| 激情综合色播激情啊| 99免费精品在线观看| 欧美丰满少妇xxxbbb| 国产日韩欧美一区二区三区综合| 亚洲精品久久7777| 狠狠色丁香婷综合久久| 欧洲国产伦久久久久久久| 精品国产电影一区二区| 亚洲综合色噜噜狠狠| 国产在线精品一区二区不卡了| 色婷婷精品久久二区二区蜜臂av| 精品国产乱码久久| 一个色妞综合视频在线观看| 国产精品99精品久久免费| 欧美日韩综合不卡| 国产精品欧美久久久久一区二区| 五月激情丁香一区二区三区| 99久免费精品视频在线观看| 欧美成人精品3d动漫h| 亚洲一区在线电影| 成人激情免费网站| 精品电影一区二区三区| 亚洲自拍偷拍麻豆| 成人高清免费观看| 精品久久久久av影院| 亚洲国产视频网站| 99视频国产精品| 久久久久99精品国产片| 激情五月激情综合网| 精品一区二区国语对白| 日本电影欧美片| 国产精品视频一二三| 久久99久久久欧美国产| 欧美日韩激情在线| 成人手机在线视频| 337p日本欧洲亚洲大胆色噜噜| 亚洲综合激情网| 91视频免费播放| 一区在线中文字幕| 高清shemale亚洲人妖| 精品久久久影院| 免费欧美日韩国产三级电影| 欧美在线观看18| 亚洲欧美激情视频在线观看一区二区三区| 国产一区二区在线观看视频| 日韩精品一区二区三区蜜臀| 午夜天堂影视香蕉久久| 在线免费观看日本一区| 亚洲日本va午夜在线影院| 国产盗摄精品一区二区三区在线| 欧美变态口味重另类| 美日韩一区二区| 欧美一区二区三区电影| 日韩精品乱码免费| 制服丝袜激情欧洲亚洲| 三级欧美在线一区| 欧美一三区三区四区免费在线看| 亚洲国产一二三| 欧美久久久久久久久中文字幕| 亚洲一区中文日韩| 欧美日韩国产精品成人| 无码av免费一区二区三区试看| 欧美疯狂做受xxxx富婆| 日本视频在线一区| 日韩欧美一区中文| 精品在线观看免费| 国产亚洲欧洲一区高清在线观看| 国产成人啪免费观看软件| 中文字幕精品—区二区四季| heyzo一本久久综合| 亚洲精品写真福利| 欧美日韩国产乱码电影| 麻豆精品国产传媒mv男同| 精品粉嫩aⅴ一区二区三区四区| 国产乱子轮精品视频| 国产精品免费丝袜| 91丨九色丨黑人外教| 亚洲综合999| 欧美一级xxx| 国产一区二区h| 中文字幕成人av| 在线观看区一区二| 日韩黄色一级片| 国产视频一区二区三区在线观看| 成人综合激情网| 亚洲午夜一区二区| 日韩欧美中文字幕公布| 欧美一区二区三区免费在线看| 亚洲一二三区视频在线观看| 欧美日韩精品一区二区天天拍小说 | 亚洲免费在线观看| 欧美日韩一区二区三区四区五区| 日本午夜一区二区| 久久毛片高清国产| heyzo一本久久综合| 午夜伦欧美伦电影理论片| 欧美大胆人体bbbb| www.欧美色图| 亚洲成av人片一区二区三区| 日韩欧美成人午夜| 成人黄动漫网站免费app| 亚洲成av人片在www色猫咪| 日韩精品一区二区三区四区视频| 成人h动漫精品一区二区| 亚洲成av人片一区二区| 久久夜色精品一区| 欧美专区日韩专区| 黄色日韩三级电影| 一区二区三区日韩欧美| 欧美成人女星排行榜| 色综合一区二区三区| 六月丁香婷婷色狠狠久久| 亚洲欧洲精品一区二区三区| 91.xcao| aaa欧美日韩| 黑人巨大精品欧美黑白配亚洲| 亚洲精品第1页| 国产午夜精品在线观看| 欧美日韩视频一区二区| 成人亚洲一区二区一| 日本一不卡视频| 亚洲欧美日韩综合aⅴ视频| 精品国产污网站| 色欧美片视频在线观看在线视频| 国产麻豆精品视频| 五月天欧美精品| 亚洲色图一区二区| 久久精品视频网| 欧美高清视频一二三区| aaa欧美色吧激情视频| 极品少妇一区二区三区精品视频| 一区二区三区在线视频免费| 欧美国产一区二区在线观看| 日韩欧美一二三四区| 在线免费视频一区二区| 国产成人av一区二区| 男男视频亚洲欧美| 亚洲最新在线观看| 欧美激情一区在线观看| 欧美成人video| 欧美日韩一二三区| 91麻豆精品秘密| 成人永久aaa| 国产一区二区视频在线播放| 蜜臀a∨国产成人精品| 亚洲高清久久久| 一区二区三区四区在线播放 | av综合在线播放| 国产麻豆精品theporn| 麻豆久久一区二区| 午夜欧美视频在线观看| 亚洲欧美日韩国产成人精品影院| 日本一二三四高清不卡| 国产亚洲短视频| 26uuu国产在线精品一区二区| 5858s免费视频成人| 欧美色图一区二区三区| 日本久久一区二区三区| 99久久777色| 99久久国产综合精品色伊| 成人午夜精品一区二区三区| 国产九色sp调教91| 国产一区二区精品在线观看| 九一九一国产精品| 精品无码三级在线观看视频| 久久精品国产在热久久| 久久99日本精品| 麻豆91小视频| 蜜桃视频一区二区三区在线观看| 日韩在线一二三区| 日韩中文字幕1| 免费的成人av| 久久国产精品99久久人人澡| 久久精品国产**网站演员| 久久福利资源站| 国产一区二区三区国产| 国产91精品免费| 成人免费电影视频| 91蝌蚪porny成人天涯| 色综合天天综合网天天看片| 在线精品视频免费播放| 欧美日本在线看| 欧美一级日韩一级| 精品国产伦一区二区三区观看方式 | 一区二区三区中文字幕| 亚洲国产cao| 日本网站在线观看一区二区三区 | 国产偷国产偷亚洲高清人白洁| 久久久精品国产99久久精品芒果| 日本一区二区三区四区| 中文字幕一区二区不卡|