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

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

?? logimpl.cs

?? 詳細講述了數據庫編程
?? CS
?? 第 1 頁 / 共 4 頁
字號:
#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.Globalization;

using log4net.Repository;
using log4net.Util;

namespace log4net.Core
{
	/// <summary>
	/// Implementation of <see cref="ILog"/> wrapper interface.
	/// </summary>
	/// <remarks>
	/// <para>
	/// This implementation of the <see cref="ILog"/> interface
	/// forwards to the <see cref="ILogger"/> held by the base class.
	/// </para>
	/// <para>
	/// This logger has methods to allow the caller to log at the following
	/// levels:
	/// </para>
	/// <list type="definition">
	///   <item>
	///     <term>DEBUG</term>
	///     <description>
	///     The <see cref="Debug(object)"/> and <see cref="DebugFormat(string, object[])"/> methods log messages
	///     at the <c>DEBUG</c> level. That is the level with that name defined in the
	///     repositories <see cref="ILoggerRepository.LevelMap"/>. The default value
	///     for this level is <see cref="Level.Debug"/>. The <see cref="IsDebugEnabled"/>
	///     property tests if this level is enabled for logging.
	///     </description>
	///   </item>
	///   <item>
	///     <term>INFO</term>
	///     <description>
	///     The <see cref="Info(object)"/> and <see cref="InfoFormat(string, object[])"/> methods log messages
	///     at the <c>INFO</c> level. That is the level with that name defined in the
	///     repositories <see cref="ILoggerRepository.LevelMap"/>. The default value
	///     for this level is <see cref="Level.Info"/>. The <see cref="IsInfoEnabled"/>
	///     property tests if this level is enabled for logging.
	///     </description>
	///   </item>
	///   <item>
	///     <term>WARN</term>
	///     <description>
	///     The <see cref="Warn(object)"/> and <see cref="WarnFormat(string, object[])"/> methods log messages
	///     at the <c>WARN</c> level. That is the level with that name defined in the
	///     repositories <see cref="ILoggerRepository.LevelMap"/>. The default value
	///     for this level is <see cref="Level.Warn"/>. The <see cref="IsWarnEnabled"/>
	///     property tests if this level is enabled for logging.
	///     </description>
	///   </item>
	///   <item>
	///     <term>ERROR</term>
	///     <description>
	///     The <see cref="Error(object)"/> and <see cref="ErrorFormat(string, object[])"/> methods log messages
	///     at the <c>ERROR</c> level. That is the level with that name defined in the
	///     repositories <see cref="ILoggerRepository.LevelMap"/>. The default value
	///     for this level is <see cref="Level.Error"/>. The <see cref="IsErrorEnabled"/>
	///     property tests if this level is enabled for logging.
	///     </description>
	///   </item>
	///   <item>
	///     <term>FATAL</term>
	///     <description>
	///     The <see cref="Fatal(object)"/> and <see cref="FatalFormat(string, object[])"/> methods log messages
	///     at the <c>FATAL</c> level. That is the level with that name defined in the
	///     repositories <see cref="ILoggerRepository.LevelMap"/>. The default value
	///     for this level is <see cref="Level.Fatal"/>. The <see cref="IsFatalEnabled"/>
	///     property tests if this level is enabled for logging.
	///     </description>
	///   </item>
	/// </list>
	/// <para>
	/// The values for these levels and their semantic meanings can be changed by 
	/// configuring the <see cref="ILoggerRepository.LevelMap"/> for the repository.
	/// </para>
	/// </remarks>
	/// <author>Nicko Cadell</author>
	/// <author>Gert Driesen</author>
	public class LogImpl : LoggerWrapperImpl, ILog
	{
		#region Public Instance Constructors

		/// <summary>
		/// Construct a new wrapper for the specified logger.
		/// </summary>
		/// <param name="logger">The logger to wrap.</param>
		/// <remarks>
		/// <para>
		/// Construct a new wrapper for the specified logger.
		/// </para>
		/// </remarks>
		public LogImpl(ILogger logger) : base(logger)
		{
			// Listen for changes to the repository
			logger.Repository.ConfigurationChanged += new LoggerRepositoryConfigurationChangedEventHandler(LoggerRepositoryConfigurationChanged);

			// load the current levels
			ReloadLevels(logger.Repository);
		}

		#endregion Public Instance Constructors

		/// <summary>
		/// Virtual method called when the configuration of the repository changes
		/// </summary>
		/// <param name="repository">the repository holding the levels</param>
		/// <remarks>
		/// <para>
		/// Virtual method called when the configuration of the repository changes
		/// </para>
		/// </remarks>
		protected virtual void ReloadLevels(ILoggerRepository repository)
		{
			LevelMap levelMap = repository.LevelMap;

			m_levelDebug = levelMap.LookupWithDefault(Level.Debug);
			m_levelInfo = levelMap.LookupWithDefault(Level.Info);
			m_levelWarn = levelMap.LookupWithDefault(Level.Warn);
			m_levelError = levelMap.LookupWithDefault(Level.Error);
			m_levelFatal = levelMap.LookupWithDefault(Level.Fatal);
		}

		#region Implementation of ILog

		/// <summary>
		/// Logs a message object with the <c>DEBUG</c> level.
		/// </summary>
		/// <param name="message">The message object to log.</param>
		/// <remarks>
		/// <para>
		/// This method first checks if this logger is <c>DEBUG</c>
		/// enabled by comparing the level of this logger with the 
		/// <c>DEBUG</c> level. If this logger is
		/// <c>DEBUG</c> enabled, then it converts the message object
		/// (passed as parameter) to a string by invoking the appropriate
		/// <see cref="log4net.ObjectRenderer.IObjectRenderer"/>. It then 
		/// proceeds to call all the registered appenders in this logger 
		/// and also higher in the hierarchy depending on the value of the 
		/// additivity flag.
		/// </para>
		/// <para>
		/// <b>WARNING</b> Note that passing an <see cref="Exception"/> 
		/// to this method will print the name of the <see cref="Exception"/> 
		/// but no stack trace. To print a stack trace use the 
		/// <see cref="Debug(object,Exception)"/> form instead.
		/// </para>
		/// </remarks>
		virtual public void Debug(object message) 
		{
			Logger.Log(ThisDeclaringType, m_levelDebug, message, null);
		}

		/// <summary>
		/// Logs a message object with the <c>DEBUG</c> level
		/// </summary>
		/// <param name="message">The message object to log.</param>
		/// <param name="exception">The exception to log, including its stack trace.</param>
		/// <remarks>
		/// <para>
		/// Logs a message object with the <c>DEBUG</c> level including
		/// the stack trace of the <see cref="Exception"/> <paramref name="exception"/> passed
		/// as a parameter.
		/// </para>
		/// <para>
		/// See the <see cref="Debug(object)"/> form for more detailed information.
		/// </para>
		/// </remarks>
		/// <seealso cref="Debug(object)"/>
		virtual public void Debug(object message, Exception exception) 
		{
			Logger.Log(ThisDeclaringType, m_levelDebug, message, exception);
		}

		/// <summary>
		/// Logs a formatted message string with the <c>DEBUG</c> level.
		/// </summary>
		/// <param name="format">A String containing zero or more format items</param>
		/// <param name="args">An Object array containing zero or more objects to format</param>
		/// <remarks>
		/// <para>
		/// The message is formatted using the <see cref="String.Format(IFormatProvider, string, object[])"/> method. See
		/// <c>String.Format</c> for details of the syntax of the format string and the behavior
		/// of the formatting.
		/// </para>
		/// <para>
		/// The string is formatted using the <see cref="CultureInfo.InvariantCulture"/>
		/// format provider. To specify a localized provider use the
		/// <see cref="DebugFormat(IFormatProvider,string,object[])"/> method.
		/// </para>
		/// <para>
		/// This method does not take an <see cref="Exception"/> object to include in the
		/// log event. To pass an <see cref="Exception"/> use one of the <see cref="Debug(object)"/>
		/// methods instead.
		/// </para>
		/// </remarks>
		virtual public void DebugFormat(string format, params object[] args) 
		{
			if (IsDebugEnabled)
			{
				Logger.Log(ThisDeclaringType, m_levelDebug, new SystemStringFormat(CultureInfo.InvariantCulture, format, args), null);
			}
		}

		/// <summary>
		/// Logs a formatted message string with the <c>DEBUG</c> level.
		/// </summary>
		/// <param name="format">A String containing zero or more format items</param>
		/// <param name="arg0">An Object to format</param>
		/// <remarks>
		/// <para>
		/// The message is formatted using the <see cref="String.Format(IFormatProvider, string, object[])"/> method. See
		/// <c>String.Format</c> for details of the syntax of the format string and the behavior
		/// of the formatting.
		/// </para>
		/// <para>
		/// The string is formatted using the <see cref="CultureInfo.InvariantCulture"/>
		/// format provider. To specify a localized provider use the
		/// <see cref="DebugFormat(IFormatProvider,string,object[])"/> method.
		/// </para>
		/// <para>
		/// This method does not take an <see cref="Exception"/> object to include in the
		/// log event. To pass an <see cref="Exception"/> use one of the <see cref="Debug(object)"/>
		/// methods instead.
		/// </para>
		/// </remarks>
		virtual public void DebugFormat(string format, object arg0) 
		{
			if (IsDebugEnabled)
			{
				Logger.Log(ThisDeclaringType, m_levelDebug, new SystemStringFormat(CultureInfo.InvariantCulture, format, new object[] { arg0 }), null);
			}
		}

		/// <summary>
		/// Logs a formatted message string with the <c>DEBUG</c> level.
		/// </summary>
		/// <param name="format">A String containing zero or more format items</param>
		/// <param name="arg0">An Object to format</param>
		/// <param name="arg1">An Object to format</param>
		/// <remarks>
		/// <para>
		/// The message is formatted using the <see cref="String.Format(IFormatProvider, string, object[])"/> method. See
		/// <c>String.Format</c> for details of the syntax of the format string and the behavior
		/// of the formatting.
		/// </para>
		/// <para>
		/// The string is formatted using the <see cref="CultureInfo.InvariantCulture"/>
		/// format provider. To specify a localized provider use the
		/// <see cref="DebugFormat(IFormatProvider,string,object[])"/> method.
		/// </para>
		/// <para>
		/// This method does not take an <see cref="Exception"/> object to include in the
		/// log event. To pass an <see cref="Exception"/> use one of the <see cref="Debug(object)"/>
		/// methods instead.
		/// </para>
		/// </remarks>
		virtual public void DebugFormat(string format, object arg0, object arg1) 
		{
			if (IsDebugEnabled)
			{
				Logger.Log(ThisDeclaringType, m_levelDebug, new SystemStringFormat(CultureInfo.InvariantCulture, format, new object[] { arg0, arg1 }), null);
			}
		}

		/// <summary>
		/// Logs a formatted message string with the <c>DEBUG</c> level.
		/// </summary>
		/// <param name="format">A String containing zero or more format items</param>
		/// <param name="arg0">An Object to format</param>
		/// <param name="arg1">An Object to format</param>
		/// <param name="arg2">An Object to format</param>
		/// <remarks>
		/// <para>
		/// The message is formatted using the <see cref="String.Format(IFormatProvider, string, object[])"/> method. See
		/// <c>String.Format</c> for details of the syntax of the format string and the behavior
		/// of the formatting.
		/// </para>
		/// <para>
		/// The string is formatted using the <see cref="CultureInfo.InvariantCulture"/>
		/// format provider. To specify a localized provider use the
		/// <see cref="DebugFormat(IFormatProvider,string,object[])"/> method.
		/// </para>
		/// <para>
		/// This method does not take an <see cref="Exception"/> object to include in the
		/// log event. To pass an <see cref="Exception"/> use one of the <see cref="Debug(object)"/>
		/// methods instead.
		/// </para>
		/// </remarks>
		virtual public void DebugFormat(string format, object arg0, object arg1, object arg2) 
		{
			if (IsDebugEnabled)
			{
				Logger.Log(ThisDeclaringType, m_levelDebug, new SystemStringFormat(CultureInfo.InvariantCulture, format, new object[] { arg0, arg1, arg2 }), null);
			}
		}

		/// <summary>
		/// Logs a formatted message string with the <c>DEBUG</c> level.
		/// </summary>
		/// <param name="provider">An <see cref="IFormatProvider"/> that supplies culture-specific formatting information</param>
		/// <param name="format">A String containing zero or more format items</param>
		/// <param name="args">An Object array containing zero or more objects to format</param>
		/// <remarks>
		/// <para>
		/// The message is formatted using the <see cref="String.Format(IFormatProvider, string, object[])"/> method. See

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区免费观看| 欧美本精品男人aⅴ天堂| 最新不卡av在线| 91丝袜呻吟高潮美腿白嫩在线观看| 国产日韩亚洲欧美综合| 国产电影精品久久禁18| 国产精品色婷婷| 99久久99久久精品免费观看| 亚洲免费观看高清完整版在线观看 | 亚洲午夜免费电影| 欧美日韩www| 开心九九激情九九欧美日韩精美视频电影| 日韩欧美高清在线| 成人深夜在线观看| 亚洲欧美日韩中文播放| 337p亚洲精品色噜噜噜| 国产另类ts人妖一区二区| 亚洲欧洲精品一区二区三区| 欧美日韩精品一区二区三区四区| 人人超碰91尤物精品国产| 2017欧美狠狠色| 日韩久久久久久| 一本色道**综合亚洲精品蜜桃冫| 精品国产乱码久久久久久1区2区| 精品影视av免费| 亚洲欧洲日本在线| 69p69国产精品| 国产成人福利片| 香港成人在线视频| 久久久噜噜噜久久中文字幕色伊伊| 99综合电影在线视频| 日韩高清国产一区在线| 欧美极品美女视频| 欧美视频日韩视频在线观看| 国产一区在线不卡| 亚洲高清免费观看| 国产精品欧美综合在线| 这里只有精品免费| 99久久99久久精品免费看蜜桃| 免费人成精品欧美精品| 亚洲色图.com| 久久久久高清精品| 56国语精品自产拍在线观看| 成人黄色电影在线 | 欧美日韩久久久一区| 欧美日韩免费一区二区三区视频 | 日韩电影在线一区| 国产精品国产三级国产aⅴ无密码| 欧美疯狂做受xxxx富婆| 91在线视频免费观看| 国产一区二区三区四区五区美女| 亚洲一级二级在线| 亚洲人成亚洲人成在线观看图片| 久久综合色8888| 91精品国产一区二区| 91成人免费在线| 成人高清视频在线| 国产剧情av麻豆香蕉精品| 五月婷婷综合网| 一区二区日韩av| 中文字幕一区不卡| 久久美女艺术照精彩视频福利播放 | 高清在线成人网| 美女久久久精品| 午夜精品久久久| 亚洲综合色噜噜狠狠| 亚洲人成在线观看一区二区| 国产精品天天看| 国产视频一区在线观看| 精品福利一二区| 精品美女在线播放| 欧美成人免费网站| 日韩欧美中文字幕精品| 欧美丰满美乳xxx高潮www| 欧美日韩一区高清| 欧美人牲a欧美精品| 欧美人与性动xxxx| 欧美精品丝袜中出| 91麻豆精品国产91| 欧美精品vⅰdeose4hd| 欧美日韩1234| 欧美一级日韩免费不卡| 欧美一级二级在线观看| 日韩丝袜情趣美女图片| 日韩一级黄色片| 日韩亚洲欧美综合| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 国产电影一区在线| 成人黄色小视频在线观看| www.色精品| 99精品久久久久久| 欧美亚洲一区二区在线观看| 欧美日韩精品一区二区天天拍小说 | 婷婷中文字幕综合| 青娱乐精品视频| 激情图片小说一区| 成人动漫av在线| 在线免费精品视频| 日韩精品资源二区在线| 久久精品一区二区三区不卡| √…a在线天堂一区| 亚洲午夜羞羞片| 久久成人羞羞网站| 99视频一区二区| 欧美精品xxxxbbbb| 久久精子c满五个校花| 亚洲啪啪综合av一区二区三区| 亚洲亚洲精品在线观看| 激情小说欧美图片| 91美女蜜桃在线| 91麻豆精品国产91久久久 | 国产成人精品影视| 99精品热视频| 欧美一区二区三区四区在线观看 | 欧美va亚洲va香蕉在线 | 最新日韩av在线| 免费视频最近日韩| www.久久精品| 欧美一区二区国产| 亚洲欧美综合色| 蜜桃视频在线一区| av在线播放一区二区三区| 欧美精品久久一区| 综合激情成人伊人| 久久国产视频网| 色香蕉久久蜜桃| 久久久久9999亚洲精品| 亚洲h在线观看| 成人动漫视频在线| 日韩精品综合一本久道在线视频| 亚洲图片另类小说| 国产精品主播直播| 欧美日韩国产首页| 亚洲四区在线观看| 国产乱人伦精品一区二区在线观看 | 欧美国产乱子伦| 日韩av午夜在线观看| 91视频在线观看| 国产日产欧美一区| 国内一区二区在线| 欧美日韩高清一区二区| 中文字幕中文字幕一区二区| 麻豆国产欧美日韩综合精品二区 | 日韩电影在线观看一区| caoporn国产精品| 26uuu色噜噜精品一区二区| 午夜精品福利视频网站| 91麻豆视频网站| 国产精品无圣光一区二区| 免费av成人在线| 欧美性受xxxx黑人xyx| 亚洲桃色在线一区| 成人爱爱电影网址| 国产日韩欧美综合在线| 经典三级在线一区| 日韩欧美国产综合一区| 日韩福利视频网| 欧美日韩国产成人在线91| 亚洲人成7777| 色综合激情五月| 日韩美女精品在线| 99精品偷自拍| 亚洲日本va在线观看| 91欧美激情一区二区三区成人| 国产日韩欧美综合在线| 国产成人99久久亚洲综合精品| 精品乱码亚洲一区二区不卡| 蜜桃视频在线一区| 欧美变态口味重另类| 激情文学综合插| 久久久综合视频| 国产69精品久久777的优势| 日本一区二区成人在线| 国产成人自拍高清视频在线免费播放| 久久免费美女视频| 国产成人免费视| ...xxx性欧美| 日本精品一级二级| 亚洲高清视频的网址| 制服丝袜激情欧洲亚洲| 免费在线欧美视频| www激情久久| 成人18视频在线播放| 亚洲精品国产无天堂网2021| 欧美系列一区二区| 日韩成人伦理电影在线观看| 日韩精品一区国产麻豆| 国产.欧美.日韩| 亚洲久草在线视频| 欧洲亚洲精品在线| 青青草原综合久久大伊人精品| 精品1区2区在线观看| 成人免费av资源| 一区二区三区产品免费精品久久75| 91九色02白丝porn| 久久99国产乱子伦精品免费| 国产欧美综合在线| 欧美在线观看视频一区二区三区| 日韩高清不卡在线| 国产精品久久久久久久久晋中|