亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产一本一道久久香蕉| 欧美日韩卡一卡二| 欧美一级xxx| 中文字幕中文在线不卡住| 日本中文字幕一区| 91在线porny国产在线看| 欧美一区二区精品| 一区二区三区成人在线视频| 国产精品99精品久久免费| 欧美日韩国产一区二区三区地区| 久久―日本道色综合久久| 亚洲一区视频在线观看视频| 成人av网站免费观看| 久久众筹精品私拍模特| 免费黄网站欧美| 5月丁香婷婷综合| 亚洲国产精品一区二区久久| 成人app在线| 国产亚洲精品bt天堂精选| 秋霞av亚洲一区二区三| 欧美日韩一区二区三区免费看| 亚洲女同一区二区| 99精品国产视频| 国产精品久久久久一区| www.成人在线| 亚洲色图丝袜美腿| 99视频一区二区三区| 国产精品乱码人人做人人爱| 国产不卡免费视频| 国产欧美日韩视频在线观看| 国产精品综合一区二区三区| 久久综合五月天婷婷伊人| 精品一区二区三区在线观看国产| 日韩欧美一区二区免费| 免费一级欧美片在线观看| 欧美高清性hdvideosex| 秋霞成人午夜伦在线观看| 日韩欧美成人午夜| 国产乱码精品一区二区三| 国产欧美日韩在线看| 波多野结衣欧美| 亚洲一区二区在线观看视频| 制服丝袜亚洲网站| 久久国产生活片100| 久久九九久精品国产免费直播| 国产精一品亚洲二区在线视频| 国产欧美一区视频| 色哟哟一区二区| 亚洲成人先锋电影| 欧美mv和日韩mv的网站| 国产精品香蕉一区二区三区| 国产精品国产自产拍高清av王其| 91麻豆国产福利精品| 亚洲成人激情自拍| 精品国产免费人成电影在线观看四季| 国产福利一区在线| 亚洲精品日韩一| 91精品国产综合久久福利软件| 经典三级一区二区| 亚洲人快播电影网| 欧美一级二级三级蜜桃| 成人av电影免费在线播放| 亚洲动漫第一页| 精品国产免费视频| 色菇凉天天综合网| 黑人巨大精品欧美黑白配亚洲| 中文字幕av一区 二区| 91黄色激情网站| 国产一区二区美女诱惑| 一区二区三区在线观看动漫| 欧美不卡视频一区| 色综合久久88色综合天天免费| 青青国产91久久久久久| 一区视频在线播放| 精品成人一区二区三区四区| 在线中文字幕一区| 懂色av一区二区三区免费看| 天天做天天摸天天爽国产一区 | 精品国产乱码久久久久久闺蜜| 国产成人一级电影| 午夜久久电影网| 亚洲欧洲中文日韩久久av乱码| 精品久久99ma| 欧美日韩精品欧美日韩精品一 | 国产麻豆日韩欧美久久| 一区二区三区欧美激情| 国产调教视频一区| 日韩精品中午字幕| 欧美日韩一区久久| 色诱亚洲精品久久久久久| 不卡的电影网站| 狠狠久久亚洲欧美| 免费亚洲电影在线| 亚洲成人自拍偷拍| 亚洲一区二区三区视频在线| 国产精品久久影院| 国产嫩草影院久久久久| 欧美电影免费观看高清完整版在线| 91福利小视频| 欧洲精品在线观看| 色偷偷久久一区二区三区| 丁香婷婷深情五月亚洲| 国产福利视频一区二区三区| 韩国精品免费视频| 韩国av一区二区三区| 麻豆国产一区二区| 男人的j进女人的j一区| 午夜视频在线观看一区二区三区| 亚洲欧美乱综合| 亚洲自拍都市欧美小说| 亚洲精品视频自拍| 一二三区精品视频| 亚洲无线码一区二区三区| 亚洲最大成人网4388xx| 亚洲激情欧美激情| 亚洲午夜久久久久久久久电影院 | 国产精品久久久久影院| 日本一区二区三区高清不卡| 久久无码av三级| 欧美国产综合一区二区| 亚洲欧洲国产日韩| 亚洲欧美aⅴ...| 午夜精品一区二区三区电影天堂| 午夜久久久久久久久 | 亚洲一区二区三区四区中文字幕| 亚洲精选视频免费看| 有坂深雪av一区二区精品| 一区二区三区中文字幕电影| 一区二区三区中文字幕| 石原莉奈在线亚洲三区| 麻豆国产精品官网| 国产精品一区二区三区99| 成人福利视频网站| 欧美在线free| 日韩欧美不卡在线观看视频| 久久免费美女视频| 亚洲欧美偷拍卡通变态| 日韩中文欧美在线| 国产成人av电影在线| av在线不卡电影| 欧美日韩亚洲另类| 亚洲精品一区二区三区精华液| 国产午夜精品一区二区三区嫩草| 国产精品免费av| 婷婷中文字幕综合| 成人免费视频一区| 欧美日韩精品专区| 欧美国产日韩a欧美在线观看| 亚洲男帅同性gay1069| 日韩主播视频在线| 高清不卡在线观看| 欧美美女网站色| 国产精品美女久久久久久久| 偷窥国产亚洲免费视频| 国产成人精品亚洲777人妖| 欧美日韩一二三区| 亚洲欧洲99久久| 精久久久久久久久久久| 欧美中文字幕一区二区三区| 26uuu欧美| 亚洲国产日日夜夜| 国产69精品久久99不卡| 日韩一级黄色片| 亚洲一区二区成人在线观看| 国产精品1区2区3区| 欧美人xxxx| 亚洲色图欧洲色图婷婷| 国产精品正在播放| 这里只有精品电影| 亚洲精品高清在线| 不卡av在线网| 欧美国产日韩在线观看| 精品一区二区三区影院在线午夜| 在线欧美一区二区| 国产精品夫妻自拍| 国产精品一卡二卡| 日韩午夜精品电影| 亚洲bt欧美bt精品777| 成人18视频在线播放| 国产三级一区二区三区| 蜜桃av一区二区在线观看| 欧美精品丝袜久久久中文字幕| 成人欧美一区二区三区黑人麻豆| 国产高清亚洲一区| 久久久久成人黄色影片| 国产在线日韩欧美| 欧美r级在线观看| 久久国产精品99精品国产| 日韩午夜激情视频| 老司机精品视频导航| 在线不卡a资源高清| 丝袜a∨在线一区二区三区不卡| 欧美性大战久久久久久久蜜臀 | 国产午夜精品福利| 精品亚洲aⅴ乱码一区二区三区| 3atv在线一区二区三区| 天堂久久久久va久久久久| 91国偷自产一区二区使用方法| 亚洲欧美激情小说另类| 99久久精品国产网站|