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

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

?? logger.cs

?? 詳細(xì)講述了數(shù)據(jù)庫編程
?? 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.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲品质自拍视频网站| 亚洲国产va精品久久久不卡综合| 久久99久久99精品免视看婷婷| 欧美三电影在线| 一区二区三区精品视频在线| 91在线观看地址| 亚洲人吸女人奶水| 97久久超碰精品国产| 国产精品你懂的| www.亚洲色图.com| 国产精品美女久久久久久久网站| 国产suv精品一区二区三区| 日本精品视频一区二区三区| 国产一区中文字幕| 精品91自产拍在线观看一区| 精品在线播放免费| 欧美激情资源网| 色综合久久久久综合体桃花网| 成人手机在线视频| caoporn国产一区二区| 欧美午夜电影网| 欧美性大战xxxxx久久久| 懂色av中文一区二区三区| 国产精品卡一卡二卡三| 91丝袜美腿高跟国产极品老师| 国产精品自在在线| 成人午夜电影网站| av激情综合网| 日本强好片久久久久久aaa| 欧美精品vⅰdeose4hd| 国产在线看一区| 国产欧美日韩激情| 色哟哟亚洲精品| 欧美日韩大陆一区二区| 豆国产96在线|亚洲| 亚洲精品午夜久久久| 久久综合色婷婷| 97精品电影院| caoporm超碰国产精品| 欧美精品v日韩精品v韩国精品v| 欧美成人三级电影在线| 久久免费电影网| 一区二区三区四区在线免费观看| 精品一区二区三区在线观看| xnxx国产精品| 丁香桃色午夜亚洲一区二区三区| 国产精品亲子伦对白| 一本大道av一区二区在线播放| 亚洲一区二区三区免费视频| 日韩欧美高清在线| 国产91色综合久久免费分享| 亚洲精品视频一区二区| 91精品中文字幕一区二区三区 | 在线看一区二区| 日韩中文字幕麻豆| 久久老女人爱爱| 91色porny| 国产精品夜夜嗨| 亚洲精品乱码久久久久| 色综合av在线| 免费欧美在线视频| 国产精品短视频| 欧美肥大bbwbbw高潮| 国产精品系列在线播放| 亚洲精品乱码久久久久久黑人| 在线不卡欧美精品一区二区三区| 加勒比av一区二区| 亚洲色图19p| 欧美一区二区视频在线观看| 国产a精品视频| 午夜精品成人在线| 中文字幕不卡一区| 制服丝袜成人动漫| 91在线国产观看| 青青国产91久久久久久| 中文字幕在线不卡国产视频| 欧美精品黑人性xxxx| 成人国产电影网| 偷拍一区二区三区| 国产精品盗摄一区二区三区| 日韩精品专区在线| 色8久久精品久久久久久蜜| 国产一区视频网站| 日韩精品91亚洲二区在线观看| 亚洲国产精品激情在线观看| 7777精品伊人久久久大香线蕉的| 成人精品国产一区二区4080| 蜜臀av性久久久久蜜臀aⅴ四虎| 国产精品久久久久久久久久久免费看| 欧美日韩国产高清一区二区三区| 不卡av电影在线播放| 久久丁香综合五月国产三级网站| 亚洲精品欧美二区三区中文字幕| 久久蜜臀精品av| 欧美午夜理伦三级在线观看| jvid福利写真一区二区三区| 久久成人免费网站| 五月综合激情网| 亚洲免费在线视频一区 二区| 精品国产乱码久久久久久影片| 欧美三级蜜桃2在线观看| av亚洲精华国产精华精| 国产揄拍国内精品对白| 免费观看在线综合色| 亚洲一区二区免费视频| 欧美经典一区二区| 一区二区三区产品免费精品久久75| 成人激情免费视频| 99国产精品久久久久久久久久| 又紧又大又爽精品一区二区| 成人国产精品免费观看视频| 亚洲综合精品久久| 亚洲图片激情小说| 精品精品国产高清a毛片牛牛| 国产成人自拍高清视频在线免费播放| 欧美综合一区二区| 亚洲精品成人天堂一二三| 91精品国产乱码久久蜜臀| 国产黄色成人av| 日韩激情中文字幕| 国产精品视频第一区| 欧美电影精品一区二区| 蜜桃久久久久久久| 久久久久久97三级| 一本大道av伊人久久综合| 亚洲成人高清在线| 精品国产不卡一区二区三区| 成人av第一页| 久久国产三级精品| 久久这里都是精品| 国产成人免费视频网站 | 亚洲人123区| 国产精品一色哟哟哟| 国产肉丝袜一区二区| 风流少妇一区二区| 日韩伦理电影网| 欧美人妇做爰xxxⅹ性高电影| 久久99久久精品| 亚洲精品自拍动漫在线| 日韩欧美自拍偷拍| 色综合网站在线| 韩国三级在线一区| 视频一区免费在线观看| 国产精品午夜电影| 日韩三级高清在线| 欧洲精品视频在线观看| 国产成人亚洲精品青草天美| 亚洲电影第三页| 亚洲精品精品亚洲| 国产精品你懂的在线欣赏| 精品国产乱码久久久久久图片| 色婷婷久久99综合精品jk白丝| 国产乱国产乱300精品| 奇米四色…亚洲| 亚洲天堂福利av| 91麻豆精品国产91久久久| 高清国产一区二区三区| 国产精品色哟哟网站| 色综合天天综合网天天看片| 久久精品国产第一区二区三区| 国产精品乱码久久久久久| 91精品国产色综合久久不卡蜜臀| 91麻豆自制传媒国产之光| 国产很黄免费观看久久| 国产乱人伦偷精品视频免下载| 奇米精品一区二区三区四区| 1区2区3区国产精品| 日韩欧美电影在线| 色哟哟亚洲精品| 青娱乐精品视频在线| 久久久久久久久久久久电影 | 亚洲成人tv网| 精品av综合导航| 精品国产sm最大网站免费看| 日韩片之四级片| 欧美变态tickle挠乳网站| 精品国偷自产国产一区| 精品福利一二区| 国产欧美一区二区三区沐欲 | 91亚洲资源网| 色欧美乱欧美15图片| 欧美色图激情小说| 日韩一级片在线观看| 久久一夜天堂av一区二区三区| 国产亚洲自拍一区| 国产精品激情偷乱一区二区∴| 亚洲黄色片在线观看| 天涯成人国产亚洲精品一区av| 日韩av不卡在线观看| 国产成人在线观看免费网站| 成人激情免费视频| 欧美少妇bbb| 国产日韩欧美精品一区| 亚洲免费伊人电影| 久久精品国产99国产精品| 成人午夜av电影| 91精品国产综合久久福利| 久久精品视频在线看| 亚洲国产综合色| 成人a级免费电影|