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

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

?? logger.cs

?? 詳細講述了數據庫編程
?? CS
?? 第 1 頁 / 共 2 頁
字號:
#region Copyright & License
//
// Copyright 2001-2006 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 System.Collections;

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

namespace log4net.Repository.Hierarchy
{
	/// <summary>
	/// Implementation of <see cref="ILogger"/> used by <see cref="Hierarchy"/>
	/// </summary>
	/// <remarks>
	/// <para>
	/// Internal class used to provide implementation of <see cref="ILogger"/>
	/// interface. Applications should use <see cref="LogManager"/> to get
	/// logger instances.
	/// </para>
	/// <para>
	/// This is one of the central classes in the log4net implementation. One of the
	/// distinctive features of log4net are hierarchical loggers and their
	/// evaluation. The <see cref="Hierarchy"/> organizes the <see cref="Logger"/>
	/// instances into a rooted tree hierarchy.
	/// </para>
	/// <para>
	/// The <see cref="Logger"/> class is abstract. Only concrete subclasses of
	/// <see cref="Logger"/> can be created. The <see cref="ILoggerFactory"/>
	/// is used to create instances of this type for the <see cref="Hierarchy"/>.
	/// </para>
	/// </remarks>
	/// <author>Nicko Cadell</author>
	/// <author>Gert Driesen</author>
	/// <author>Aspi Havewala</author>
	/// <author>Douglas de la Torre</author>
	public abstract class Logger : IAppenderAttachable, ILogger
	{
		#region Protected Instance Constructors

		/// <summary>
		/// This constructor created a new <see cref="Logger" /> instance and
		/// sets its name.
		/// </summary>
		/// <param name="name">The name of the <see cref="Logger" />.</param>
		/// <remarks>
		/// <para>
		/// This constructor is protected and designed to be used by
		/// a subclass that is not abstract.
		/// </para>
		/// <para>
		/// Loggers are constructed by <see cref="ILoggerFactory"/> 
		/// objects. See <see cref="DefaultLoggerFactory"/> for the default
		/// logger creator.
		/// </para>
		/// </remarks>
		protected Logger(string name) 
		{
#if NETCF
			// NETCF: String.Intern causes Native Exception
			m_name = name;
#else
			m_name = string.Intern(name);
#endif
		}

		#endregion Protected Instance Constructors

		#region Public Instance Properties

		/// <summary>
		/// Gets or sets the parent logger in the hierarchy.
		/// </summary>
		/// <value>
		/// The parent logger in the hierarchy.
		/// </value>
		/// <remarks>
		/// <para>
		/// Part of the Composite pattern that makes the hierarchy.
		/// The hierarchy is parent linked rather than child linked.
		/// </para>
		/// </remarks>
		virtual public Logger Parent
		{
			get { return m_parent; }
			set { m_parent = value; }
		}

		/// <summary>
		/// Gets or sets a value indicating if child loggers inherit their parent's appenders.
		/// </summary>
		/// <value>
		/// <c>true</c> if child loggers inherit their parent's appenders.
		/// </value>
		/// <remarks>
		/// <para>
		/// Additivity is set to <c>true</c> by default, that is children inherit
		/// the appenders of their ancestors by default. If this variable is
		/// set to <c>false</c> then the appenders found in the
		/// ancestors of this logger are not used. However, the children
		/// of this logger will inherit its appenders, unless the children
		/// have their additivity flag set to <c>false</c> too. See
		/// the user manual for more details.
		/// </para>
		/// </remarks>
		virtual public bool Additivity
		{
			get { return m_additive; }
			set { m_additive = value; }
		}

		/// <summary>
		/// Gets the effective level for this logger.
		/// </summary>
		/// <returns>The nearest level in the logger hierarchy.</returns>
		/// <remarks>
		/// <para>
		/// Starting from this logger, searches the logger hierarchy for a
		/// non-null level and returns it. Otherwise, returns the level of the
		/// root logger.
		/// </para>
		/// <para>The Logger class is designed so that this method executes as
		/// quickly as possible.</para>
		/// </remarks>
		virtual public Level EffectiveLevel
		{
			get 
			{
				for(Logger c = this; c != null; c = c.m_parent) 
				{
					Level level = c.m_level;

					// Casting level to Object for performance, otherwise the overloaded operator is called
					if ((object)level != null) 
					{
						return level;
					}
				}
				return null; // If reached will cause an NullPointerException.
			}
		}

		/// <summary>
		/// Gets or sets the <see cref="Hierarchy"/> where this 
		/// <c>Logger</c> instance is attached to.
		/// </summary>
		/// <value>The hierarchy that this logger belongs to.</value>
		/// <remarks>
		/// <para>
		/// This logger must be attached to a single <see cref="Hierarchy"/>.
		/// </para>
		/// </remarks>
		virtual public Hierarchy Hierarchy
		{
			get { return m_hierarchy; }
			set { m_hierarchy = value; }
		}

		/// <summary>
		/// Gets or sets the assigned <see cref="Level"/>, if any, for this Logger.  
		/// </summary>
		/// <value>
		/// The <see cref="Level"/> of this logger.
		/// </value>
		/// <remarks>
		/// <para>
		/// The assigned <see cref="Level"/> can be <c>null</c>.
		/// </para>
		/// </remarks>
		virtual public Level Level
		{
			get { return m_level; }
			set { m_level = value; }
		}

		#endregion Public Instance Properties

		#region Implementation of IAppenderAttachable

		/// <summary>
		/// Add <paramref name="newAppender"/> to the list of appenders of this
		/// Logger instance.
		/// </summary>
		/// <param name="newAppender">An appender to add to this logger</param>
		/// <remarks>
		/// <para>
		/// Add <paramref name="newAppender"/> to the list of appenders of this
		/// Logger instance.
		/// </para>
		/// <para>
		/// If <paramref name="newAppender"/> is already in the list of
		/// appenders, then it won't be added again.
		/// </para>
		/// </remarks>
		virtual public void AddAppender(IAppender newAppender) 
		{
			if (newAppender == null)
			{
				throw new ArgumentNullException("newAppender");
			}

			m_appenderLock.AcquireWriterLock();
			try
			{
				if (m_appenderAttachedImpl == null) 
				{
					m_appenderAttachedImpl = new log4net.Util.AppenderAttachedImpl();
				}
				m_appenderAttachedImpl.AddAppender(newAppender);
			}
			finally
			{
				m_appenderLock.ReleaseWriterLock();
			}
		}

		/// <summary>
		/// Get the appenders contained in this logger as an 
		/// <see cref="System.Collections.ICollection"/>.
		/// </summary>
		/// <returns>A collection of the appenders in this logger</returns>
		/// <remarks>
		/// <para>
		/// Get the appenders contained in this logger as an 
		/// <see cref="System.Collections.ICollection"/>. If no appenders 
		/// can be found, then a <see cref="EmptyCollection"/> is returned.
		/// </para>
		/// </remarks>
		virtual public AppenderCollection Appenders 
		{
			get
			{
				m_appenderLock.AcquireReaderLock();
				try
				{
					if (m_appenderAttachedImpl == null)
					{
						return AppenderCollection.EmptyCollection;
					}
					else 
					{
						return m_appenderAttachedImpl.Appenders;
					}
				}
				finally
				{
					m_appenderLock.ReleaseReaderLock();
				}
			}
		}

		/// <summary>
		/// Look for the appender named as <c>name</c>
		/// </summary>
		/// <param name="name">The name of the appender to lookup</param>
		/// <returns>The appender with the name specified, or <c>null</c>.</returns>
		/// <remarks>
		/// <para>
		/// Returns the named appender, or null if the appender is not found.
		/// </para>
		/// </remarks>
		virtual public IAppender GetAppender(string name) 
		{
			m_appenderLock.AcquireReaderLock();
			try
			{
				if (m_appenderAttachedImpl == null || name == null)
				{
					return null;
				}

				return m_appenderAttachedImpl.GetAppender(name);
			}
			finally
			{
				m_appenderLock.ReleaseReaderLock();
			}
		}

		/// <summary>
		/// Remove all previously added appenders from this Logger instance.
		/// </summary>
		/// <remarks>
		/// <para>
		/// Remove all previously added appenders from this Logger instance.
		/// </para>
		/// <para>
		/// This is useful when re-reading configuration information.
		/// </para>
		/// </remarks>
		virtual public void RemoveAllAppenders() 
		{
			m_appenderLock.AcquireWriterLock();
			try
			{
				if (m_appenderAttachedImpl != null) 
				{
					m_appenderAttachedImpl.RemoveAllAppenders();
					m_appenderAttachedImpl = null;
				}
			}
			finally
			{
				m_appenderLock.ReleaseWriterLock();
			}
		}

		/// <summary>
		/// Remove the appender passed as parameter form the list of appenders.
		/// </summary>
		/// <param name="appender">The appender to remove</param>
		/// <returns>The appender removed from the list</returns>
		/// <remarks>
		/// <para>
		/// Remove the appender passed as parameter form the list of appenders.
		/// The appender removed is not closed.
		/// If you are discarding the appender you must call
		/// <see cref="IAppender.Close"/> on the appender removed.
		/// </para>
		/// </remarks>
		virtual public IAppender RemoveAppender(IAppender appender) 
		{
			m_appenderLock.AcquireWriterLock();
			try
			{
				if (appender != null && m_appenderAttachedImpl != null) 
				{
					return m_appenderAttachedImpl.RemoveAppender(appender);
				}
			}
			finally
			{
				m_appenderLock.ReleaseWriterLock();
			}
			return null;
		}

		/// <summary>
		/// Remove the appender passed as parameter form the list of appenders.
		/// </summary>
		/// <param name="name">The name of the appender to remove</param>
		/// <returns>The appender removed from the list</returns>
		/// <remarks>
		/// <para>
		/// Remove the named appender passed as parameter form the list of appenders.
		/// The appender removed is not closed.
		/// If you are discarding the appender you must call
		/// <see cref="IAppender.Close"/> on the appender removed.
		/// </para>
		/// </remarks>
		virtual public IAppender RemoveAppender(string name) 
		{
			m_appenderLock.AcquireWriterLock();
			try
			{
				if (name != null && m_appenderAttachedImpl != null)
				{
					return m_appenderAttachedImpl.RemoveAppender(name);
				}
			}
			finally
			{
				m_appenderLock.ReleaseWriterLock();
			}
			return null;
		}
  
		#endregion

		#region Implementation of ILogger

		/// <summary>
		/// Gets the logger name.
		/// </summary>
		/// <value>
		/// The name of the logger.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
粉嫩av一区二区三区粉嫩| 欧美一区二区三区在线电影| 激情文学综合丁香| 天天影视网天天综合色在线播放| 亚洲日本电影在线| 中文字幕一区二区5566日韩| 国产女主播在线一区二区| 精品久久久久久最新网址| 欧美一级日韩免费不卡| 精品毛片乱码1区2区3区 | 久久精品一区二区| 久久久久久久免费视频了| 国产日韩精品久久久| 中文字幕欧美激情| 亚洲视频在线观看三级| 亚洲狠狠丁香婷婷综合久久久| 亚洲久草在线视频| 日韩在线卡一卡二| 久久99精品视频| 成人精品免费网站| 一本色道综合亚洲| 3atv一区二区三区| 久久久久国产成人精品亚洲午夜| 国产精品国产自产拍高清av王其| 亚洲精品欧美二区三区中文字幕| 午夜电影久久久| 国产精品99久久久久久宅男| 99亚偷拍自图区亚洲| 欧美日韩情趣电影| 欧美一级精品在线| 国产精品看片你懂得| 免费观看日韩电影| 国产成人aaa| 欧美亚洲国产bt| 欧美α欧美αv大片| 精品处破学生在线二十三| 久久一二三国产| 亚洲欧美电影一区二区| 另类的小说在线视频另类成人小视频在线 | 日本sm残虐另类| 国产成人鲁色资源国产91色综| bt欧美亚洲午夜电影天堂| 欧美精选一区二区| 久久久久久久久久久黄色| 亚洲国产精品一区二区久久| 国产精品一区二区你懂的| 欧美性一二三区| 国产欧美日韩在线观看| 亚洲一区二区三区四区五区中文| 亚洲成人一区在线| 91丨porny丨首页| 欧美变态tickling挠脚心| 亚洲激情校园春色| 成人污污视频在线观看| 欧美麻豆精品久久久久久| 亚洲人亚洲人成电影网站色| 国产成人午夜精品5599 | 久久国产精品一区二区| www.日韩精品| 国产亚洲综合在线| 蜜臀精品一区二区三区在线观看| 欧美日韩免费电影| 成人少妇影院yyyy| 日韩片之四级片| 亚洲电影一区二区三区| av色综合久久天堂av综合| 欧美激情在线一区二区三区| 国产一区二区成人久久免费影院| 日韩欧美一区在线观看| 琪琪一区二区三区| 欧美日韩国产一级片| 日韩精品国产欧美| 亚洲日本乱码在线观看| av一区二区三区| 自拍av一区二区三区| 国产日韩影视精品| 亚洲已满18点击进入久久| 国产成人av电影在线观看| 日本黄色一区二区| 久久青草国产手机看片福利盒子| 亚洲欧美国产三级| 色婷婷综合久久久中文字幕| 久久人人超碰精品| 中文字幕亚洲一区二区av在线| 国产在线视视频有精品| 555夜色666亚洲国产免| 蜜桃久久精品一区二区| 欧美视频一区二区在线观看| 五月天中文字幕一区二区| 91玉足脚交白嫩脚丫在线播放| 亚洲蜜桃精久久久久久久| 国产成人综合在线| 中文字幕佐山爱一区二区免费| 国产成人精品免费视频网站| 国产精品久久久久久久久久久免费看| 91激情在线视频| 国产日韩欧美不卡在线| 色悠久久久久综合欧美99| 欧美激情在线一区二区| 一本到一区二区三区| 中文字幕中文字幕一区| 国内精品嫩模私拍在线| 欧美大度的电影原声| 免费成人美女在线观看.| 久久精品亚洲国产奇米99| 精品一区二区三区免费毛片爱| 国产精品热久久久久夜色精品三区| 国产剧情一区二区三区| 一区二区三区日韩欧美| 成a人片亚洲日本久久| 精品无码三级在线观看视频 | av爱爱亚洲一区| 亚洲欧美偷拍三级| 精品免费日韩av| 国产精品一线二线三线精华| 亚洲愉拍自拍另类高清精品| 欧美午夜一区二区三区 | 精品美女在线播放| 国内精品不卡在线| 一区二区三区四区在线| 欧美视频一区二区| 成人免费毛片片v| 一区二区三区四区五区视频在线观看 | 精品成人a区在线观看| 日韩—二三区免费观看av| 日韩欧美一区二区三区在线| 久久精品国产免费看久久精品| 日韩女优av电影| 激情成人午夜视频| 亚洲乱码中文字幕综合| 欧美色视频一区| 九九久久精品视频| 日韩欧美国产电影| 欧美日韩免费观看一区二区三区 | 国产人久久人人人人爽| 一本久久精品一区二区| 波多野结衣在线一区| 日韩国产精品久久| 一区二区中文视频| 在线亚洲一区二区| 性感美女久久精品| 中文字幕va一区二区三区| 亚洲精品一线二线三线无人区| 97精品久久久午夜一区二区三区| 1024国产精品| 欧美不卡一区二区三区四区| 欧美日韩黄色影视| 成人精品gif动图一区| 久久夜色精品一区| 日韩一区二区在线播放| 美女视频黄 久久| 麻豆国产精品777777在线| 亚洲欧美偷拍三级| 亚洲国产精品久久人人爱| 欧美激情一区二区三区全黄| 精品久久久影院| 欧美性猛片xxxx免费看久爱 | 亚洲国产岛国毛片在线| 欧美一级片在线观看| 日韩精品在线看片z| 欧美精品日韩精品| 欧美mv和日韩mv国产网站| 欧美午夜一区二区三区免费大片| 色婷婷av久久久久久久| 亚洲国产精品欧美一二99| 一区二区视频免费在线观看| 亚洲电影一级片| 中文字幕二三区不卡| 中文字幕欧美一区| 久久精品视频一区| 亚洲丝袜精品丝袜在线| 国产区在线观看成人精品| 国产精品久久久久毛片软件| 欧美国产精品一区二区三区| 中文字幕亚洲综合久久菠萝蜜| 国产色产综合色产在线视频| 亚洲免费观看高清在线观看| 中国色在线观看另类| 午夜精品久久久久久久久久久 | 成人手机在线视频| 国产福利一区二区三区在线视频| 天天综合网 天天综合色| 日韩综合在线视频| 亚洲成人资源网| 亚洲成人av免费| 国产精品亚洲成人| 国产成人av影院| 色综合天天综合网天天狠天天| 成人av影视在线观看| 波多野洁衣一区| 国产精品91xxx| 欧美日韩国产美| 日韩欧美国产一区二区三区| 日韩一区二区三区视频在线观看| 日韩欧美亚洲一区二区| 精品久久人人做人人爱| 26uuu国产日韩综合| 亚洲成a天堂v人片| 日本欧美久久久久免费播放网| 国产成人h网站|