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

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

?? hierarchy.cs

?? 網上書店系統
?? CS
?? 第 1 頁 / 共 3 頁
字號:
#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.ObjectRenderer;
using log4net.Core;
using log4net.Util;

namespace log4net.Repository.Hierarchy
{
	#region LoggerCreationEvent

	/// <summary>
	/// Delegate used to handle logger creation event notifications.
	/// </summary>
	/// <param name="sender">The <see cref="Hierarchy"/> in which the <see cref="Logger"/> has been created.</param>
	/// <param name="e">The <see cref="LoggerCreationEventArgs"/> event args that hold the <see cref="Logger"/> instance that has been created.</param>
	/// <remarks>
	/// <para>
	/// Delegate used to handle logger creation event notifications.
	/// </para>
	/// </remarks>
	public delegate void LoggerCreationEventHandler(object sender, LoggerCreationEventArgs e);

	/// <summary>
	/// Provides data for the <see cref="Hierarchy.LoggerCreatedEvent"/> event.
	/// </summary>
	/// <remarks>
	/// <para>
	/// A <see cref="Hierarchy.LoggerCreatedEvent"/> event is raised every time a
	/// <see cref="Logger"/> is created.
	/// </para>
	/// </remarks>
	public class LoggerCreationEventArgs : EventArgs
	{
		/// <summary>
		/// The <see cref="Logger"/> created
		/// </summary>
		private Logger m_log;

		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="log">The <see cref="Logger"/> that has been created.</param>
		/// <remarks>
		/// <para>
		/// Initializes a new instance of the <see cref="LoggerCreationEventArgs" /> event argument 
		/// class,with the specified <see cref="Logger"/>.
		/// </para>
		/// </remarks>
		public LoggerCreationEventArgs(Logger log)
		{
			m_log = log;
		}

		/// <summary>
		/// Gets the <see cref="Logger"/> that has been created.
		/// </summary>
		/// <value>
		/// The <see cref="Logger"/> that has been created.
		/// </value>
		/// <remarks>
		/// <para>
		/// The <see cref="Logger"/> that has been created.
		/// </para>
		/// </remarks>
		public Logger Logger
		{
			get { return m_log; }
		}
	}

	#endregion LoggerCreationEvent

	/// <summary>
	/// Hierarchical organization of loggers
	/// </summary>
	/// <remarks>
	/// <para>
	/// <i>The casual user should not have to deal with this class
	/// directly.</i>
	/// </para>
	/// <para>
	/// This class is specialized in retrieving loggers by name and
	/// also maintaining the logger hierarchy. Implements the 
	/// <see cref="ILoggerRepository"/> interface.
	/// </para>
	/// <para>
	/// The structure of the logger hierarchy is maintained by the
	/// <see cref="GetLogger(string)"/> method. The hierarchy is such that children
	/// link to their parent but parents do not have any references to their
	/// children. Moreover, loggers can be instantiated in any order, in
	/// particular descendant before ancestor.
	/// </para>
	/// <para>
	/// In case a descendant is created before a particular ancestor,
	/// then it creates a provision node for the ancestor and adds itself
	/// to the provision node. Other descendants of the same ancestor add
	/// themselves to the previously created provision node.
	/// </para>
	/// </remarks>
	/// <author>Nicko Cadell</author>
	/// <author>Gert Driesen</author>
	public class Hierarchy : LoggerRepositorySkeleton, IBasicRepositoryConfigurator, IXmlRepositoryConfigurator
	{
		#region Public Events

		/// <summary>
		/// Event used to notify that a logger has been created.
		/// </summary>
		/// <remarks>
		/// <para>
		/// Event raised when a logger is created.
		/// </para>
		/// </remarks>
		public event LoggerCreationEventHandler LoggerCreatedEvent
		{
			add { m_loggerCreatedEvent += value; }
			remove { m_loggerCreatedEvent -= value; }
		}

		#endregion Public Events

		#region Public Instance Constructors

		/// <summary>
		/// Default constructor
		/// </summary>
		/// <remarks>
		/// <para>
		/// Initializes a new instance of the <see cref="Hierarchy" /> class.
		/// </para>
		/// </remarks>
		public Hierarchy() : this(new DefaultLoggerFactory())
		{
		}

		/// <summary>
		/// Construct with properties
		/// </summary>
		/// <param name="properties">The properties to pass to this repository.</param>
		/// <remarks>
		/// <para>
		/// Initializes a new instance of the <see cref="Hierarchy" /> class.
		/// </para>
		/// </remarks>
		public Hierarchy(PropertiesDictionary properties) : this(properties, new DefaultLoggerFactory())
		{
		}

		/// <summary>
		/// Construct with a logger factory
		/// </summary>
		/// <param name="loggerFactory">The factory to use to create new logger instances.</param>
		/// <remarks>
		/// <para>
		/// Initializes a new instance of the <see cref="Hierarchy" /> class with 
		/// the specified <see cref="ILoggerFactory" />.
		/// </para>
		/// </remarks>
		public Hierarchy(ILoggerFactory loggerFactory) : this(new PropertiesDictionary(), loggerFactory)
		{
		}

		/// <summary>
		/// Construct with properties and a logger factory
		/// </summary>
		/// <param name="properties">The properties to pass to this repository.</param>
		/// <param name="loggerFactory">The factory to use to create new logger instances.</param>
		/// <remarks>
		/// <para>
		/// Initializes a new instance of the <see cref="Hierarchy" /> class with 
		/// the specified <see cref="ILoggerFactory" />.
		/// </para>
		/// </remarks>
		public Hierarchy(PropertiesDictionary properties, ILoggerFactory loggerFactory) : base(properties)
		{
			if (loggerFactory == null)
			{
				throw new ArgumentNullException("loggerFactory");
			}

			m_defaultFactory = loggerFactory;

			m_ht = System.Collections.Hashtable.Synchronized(new System.Collections.Hashtable());
		}

		#endregion Public Instance Constructors

		#region Public Instance Properties

		/// <summary>
		/// Has no appender warning been emitted
		/// </summary>
		/// <remarks>
		/// <para>
		/// Flag to indicate if we have already issued a warning
		/// about not having an appender warning.
		/// </para>
		/// </remarks>
		public bool EmittedNoAppenderWarning
		{
			get { return m_emittedNoAppenderWarning; }
			set { m_emittedNoAppenderWarning = value; }
		}

		/// <summary>
		/// Get the root of this hierarchy
		/// </summary>
		/// <remarks>
		/// <para>
		/// Get the root of this hierarchy.
		/// </para>
		/// </remarks>
		public Logger Root
		{
			get 
			{ 
				if (m_root == null)
				{
					lock(this)
					{
						if (m_root == null)
						{
							// Create the root logger
							Logger root = m_defaultFactory.CreateLogger(null);
							root.Hierarchy = this;

							// Store root
							m_root = root;
						}
					}
				}
				return m_root; 
			}
		}

		/// <summary>
		/// Gets or sets the default <see cref="ILoggerFactory" /> instance.
		/// </summary>
		/// <value>The default <see cref="ILoggerFactory" /></value>
		/// <remarks>
		/// <para>
		/// The logger factory is used to create logger instances.
		/// </para>
		/// </remarks>
		public ILoggerFactory LoggerFactory
		{
			get { return m_defaultFactory; }
			set
			{
				if (value == null)
				{
					throw new ArgumentNullException("value");
				}
				m_defaultFactory = value;
			}
		}

		#endregion Public Instance Properties

		#region Override Implementation of LoggerRepositorySkeleton

		/// <summary>
		/// Test if a logger exists
		/// </summary>
		/// <param name="name">The name of the logger to lookup</param>
		/// <returns>The Logger object with the name specified</returns>
		/// <remarks>
		/// <para>
		/// Check if the named logger exists in the hierarchy. If so return
		/// its reference, otherwise returns <c>null</c>.
		/// </para>
		/// </remarks>
		override public ILogger Exists(string name) 
		{	
			if (name == null)
			{
				throw new ArgumentNullException("name");
			}

			return m_ht[new LoggerKey(name)] as Logger;
		}

		/// <summary>
		/// Returns all the currently defined loggers in the hierarchy as an Array
		/// </summary>
		/// <returns>All the defined loggers</returns>
		/// <remarks>
		/// <para>
		/// Returns all the currently defined loggers in the hierarchy as an Array.
		/// The root logger is <b>not</b> included in the returned
		/// enumeration.
		/// </para>
		/// </remarks>
		override public ILogger[] GetCurrentLoggers() 
		{
			// The accumulation in loggers is necessary because not all elements in
			// ht are Logger objects as there might be some ProvisionNodes
			// as well.
			System.Collections.ArrayList loggers = new System.Collections.ArrayList(m_ht.Count);
	
			// Iterate through m_ht values
			foreach(object node in m_ht.Values)
			{
				if (node is Logger) 
				{
					loggers.Add(node);
				}
			}
			return (Logger[])loggers.ToArray(typeof(Logger));
		}

		/// <summary>
		/// Return a new logger instance named as the first parameter using
		/// the default factory.
		/// </summary>
		/// <remarks>
		/// <para>
		/// Return a new logger instance named as the first parameter using
		/// the default factory.
		/// </para>
		/// <para>
		/// If a logger of that name already exists, then it will be
		/// returned.  Otherwise, a new logger will be instantiated and
		/// then linked with its existing ancestors as well as children.
		/// </para>
		/// </remarks>
		/// <param name="name">The name of the logger to retrieve</param>
		/// <returns>The logger object with the name specified</returns>
		override public ILogger GetLogger(string name) 
		{
			if (name == null)
			{
				throw new ArgumentNullException("name");
			}

			return GetLogger(name, m_defaultFactory);
		}

		/// <summary>
		/// Shutting down a hierarchy will <i>safely</i> close and remove
		/// all appenders in all loggers including the root logger.
		/// </summary>
		/// <remarks>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产丝袜欧美中文另类| 日韩三级在线观看| 亚洲欧美韩国综合色| 91香蕉视频在线| 亚洲国产成人va在线观看天堂| 在线精品国精品国产尤物884a| 亚洲一区在线播放| 91精品国产欧美一区二区成人| 久久电影网站中文字幕| 中文av一区特黄| 欧美在线观看你懂的| 蜜臀va亚洲va欧美va天堂| 国产亚洲一区二区三区在线观看| 粉嫩av一区二区三区| 亚洲精品水蜜桃| 欧美一级淫片007| 高清beeg欧美| 亚洲福利电影网| 久久久一区二区三区捆绑**| 91玉足脚交白嫩脚丫在线播放| 亚洲丶国产丶欧美一区二区三区| 亚洲精品在线免费观看视频| 不卡一区二区三区四区| 亚洲超碰97人人做人人爱| 久久先锋影音av| 91久久精品日日躁夜夜躁欧美| 免费高清视频精品| ...中文天堂在线一区| 这里只有精品免费| av网站一区二区三区| 全国精品久久少妇| 1024精品合集| 久久先锋资源网| 欧美日韩亚洲丝袜制服| 国产aⅴ精品一区二区三区色成熟| 亚洲一区二区成人在线观看| 久久久99精品久久| 69久久夜色精品国产69蝌蚪网| 国产精品一区在线观看乱码| 亚洲电影视频在线| 亚洲色图丝袜美腿| 久久新电视剧免费观看| 欧美美女视频在线观看| 99天天综合性| 国精产品一区一区三区mba视频| 亚洲黄色在线视频| 国产精品色婷婷| 精品国精品自拍自在线| 精品视频一区二区三区免费| 成人开心网精品视频| 国产在线麻豆精品观看| 丝袜诱惑制服诱惑色一区在线观看 | 成人精品国产免费网站| 奇米色777欧美一区二区| 亚洲人成网站在线| 中文文精品字幕一区二区| 日韩精品一区二区三区老鸭窝 | 成人国产免费视频| 国产一区中文字幕| 日本不卡中文字幕| 午夜精品一区二区三区免费视频| 中文字幕一区二区三区视频| 久久精品视频在线免费观看| 欧美大片日本大片免费观看| 欧美视频在线一区二区三区 | 成人久久久精品乱码一区二区三区| 麻豆91在线观看| 欧美aⅴ一区二区三区视频| 亚洲国产精品综合小说图片区| 亚洲色图制服诱惑 | 亚洲人成小说网站色在线 | 337p日本欧洲亚洲大胆精品 | 欧美性色aⅴ视频一区日韩精品| 91一区二区三区在线观看| a级高清视频欧美日韩| 国产成人av网站| 国产成人午夜精品影院观看视频| 久久99精品视频| 久久97超碰色| 国产综合色产在线精品| 国产黄色成人av| av亚洲精华国产精华| 91一区二区三区在线播放| 91成人免费电影| 欧美日韩在线直播| 欧美日韩高清一区| 日韩欧美一区二区三区在线| 日韩欧美一级在线播放| 久久天天做天天爱综合色| 久久精品视频免费| 一区二区中文视频| 亚洲一区在线电影| 蜜桃视频免费观看一区| 国产精品一区二区久久精品爱涩| 国产精品一区二区不卡| 成+人+亚洲+综合天堂| 色94色欧美sute亚洲13| 欧美一区二区三区电影| 久久久久久毛片| 亚洲欧美色一区| 视频一区视频二区中文| 国产永久精品大片wwwapp| 99国产精品国产精品久久| 欧美综合欧美视频| 日韩欧美第一区| 国产精品麻豆99久久久久久| 亚洲不卡av一区二区三区| 国内一区二区视频| 一道本成人在线| 精品国产一区二区国模嫣然| 中文字幕中文在线不卡住| 午夜精品福利一区二区三区蜜桃| 久久99久国产精品黄毛片色诱| 成人国产精品视频| 91精品欧美久久久久久动漫| 国产欧美视频一区二区三区| 亚洲国产精品天堂| 福利视频网站一区二区三区| 欧美日韩精品一区二区天天拍小说 | 国产精品欧美精品| 日本大胆欧美人术艺术动态| 国产一区二区不卡| 欧美日韩一区二区三区四区| 精品国产91久久久久久久妲己| 国产精品久久久久毛片软件| 日本中文字幕一区| av在线不卡免费看| 久久亚区不卡日本| 视频在线观看国产精品| 欧美性xxxxxxxx| 精品国产污污免费网站入口| 亚洲精品国产a| 国产成人亚洲精品青草天美| 91精品国产综合久久香蕉麻豆| 中文字幕一区二区日韩精品绯色 | 另类成人小视频在线| av资源网一区| 国产欧美一区二区三区在线老狼| 日韩中文字幕区一区有砖一区| 99精品视频中文字幕| 欧美xxxx老人做受| 午夜精品一区二区三区三上悠亚| 91日韩精品一区| 国产午夜精品久久久久久免费视| 日韩电影在线一区| 欧美午夜免费电影| 亚洲男同性恋视频| 成人美女视频在线观看18| 久久久精品天堂| 久久国产生活片100| 在线不卡a资源高清| 亚洲国产精品久久艾草纯爱| 一本色道久久综合亚洲91| 中文字幕亚洲成人| 99久久免费精品| 国产精品久久久久久久久免费丝袜| 国产在线国偷精品产拍免费yy| 欧美一区二区三区电影| 日韩高清一区二区| 欧美伦理视频网站| 五月天网站亚洲| 91精品一区二区三区久久久久久 | 夜夜揉揉日日人人青青一国产精品| 成人白浆超碰人人人人| 国产精品乱人伦中文| 粉嫩av一区二区三区在线播放| 国产精品毛片无遮挡高清| www.综合网.com| 亚洲丝袜另类动漫二区| 91美女片黄在线| 亚洲激情网站免费观看| 欧美三电影在线| 日韩二区三区四区| 精品日本一线二线三线不卡| 国产一区三区三区| 欧美国产成人精品| 99久久伊人久久99| 一区二区三区不卡在线观看 | 欧美一级片在线看| 麻豆中文一区二区| 国产片一区二区三区| 99精品在线观看视频| 亚洲国产精品久久久久秋霞影院| 91精品麻豆日日躁夜夜躁| 久久精品99久久久| 国产精品你懂的在线欣赏| 色琪琪一区二区三区亚洲区| 午夜亚洲福利老司机| 欧美成人午夜电影| av在线播放一区二区三区| 亚洲一区二区三区小说| 日韩一区二区三区视频在线| 激情综合色综合久久| 亚洲欧洲精品一区二区三区| 在线免费av一区| 韩国三级在线一区| 亚洲欧美日韩一区| 日韩一区二区三区在线观看| 国产mv日韩mv欧美| 天天av天天翘天天综合网|