<?xml version="1.0"?>
|
<doc>
|
<assembly>
|
<name>Common.Logging.Log4Net1213</name>
|
</assembly>
|
<members>
|
<member name="T:Common.Logging.Log4Net.CommonLoggingAppender">
|
<summary>
|
Routes log events to Common.Logging infrastructure.
|
</summary>
|
<example>
|
To route all events logged using log4net to Common.Logging, you need to configure this appender as shown below:
|
<code>
|
<log4net>
|
<appender name="CommonLoggingAppender"
|
type="Common.Logging.Log4Net.CommonLoggingAppender, Common.Logging.Log4Net129">
|
<layout type="log4net.Layout.PatternLayout, log4net">
|
<param name="ConversionPattern" value="%level - %class.%method: %message" />
|
</layout>
|
</appender>
|
|
<root>
|
<level value="ALL" />
|
<appender-ref ref="CommonLoggingAppender" />
|
</root>
|
</log4net>
|
</code>
|
</example>
|
<author>Erich Eichinger</author>
|
</member>
|
<member name="M:Common.Logging.Log4Net.CommonLoggingAppender.GetClosestLevel(log4net.Core.Level)">
|
<summary>
|
Gets the closest level supported by Common.Logging of the given log4net level
|
</summary>
|
</member>
|
<member name="M:Common.Logging.Log4Net.CommonLoggingAppender.Append(log4net.Core.LoggingEvent)">
|
<summary>
|
Sends the given log event to Common.Logging
|
</summary>
|
</member>
|
<member name="P:Common.Logging.Log4Net.CommonLoggingAppender.Layout">
|
<summary>
|
Get or set the layout for this appender
|
</summary>
|
</member>
|
<member name="T:Common.Logging.Log4Net.CommonLoggingAppender.ExceptionAwareLayout">
|
<summary>
|
Wrapper class that prevents exceptions from being rendered in the message
|
</summary>
|
</member>
|
<member name="T:Common.Logging.Log4Net.Log4NetGlobalVariablesContext">
|
<summary>
|
A global context for logger variables
|
</summary>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetGlobalVariablesContext.Set(System.String,System.Object)">
|
<summary>
|
Sets the value of a new or existing variable within the global context
|
</summary>
|
<param name="key">The key of the variable that is to be added</param>
|
<param name="value">The value to add</param>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetGlobalVariablesContext.Get(System.String)">
|
<summary>
|
Gets the value of a variable within the global context
|
</summary>
|
<param name="key">The key of the variable to get</param>
|
<returns>The value or null if not found</returns>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetGlobalVariablesContext.Contains(System.String)">
|
<summary>
|
Checks if a variable is set within the global context
|
</summary>
|
<param name="key">The key of the variable to check for</param>
|
<returns>True if the variable is set</returns>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetGlobalVariablesContext.Remove(System.String)">
|
<summary>
|
Removes a variable from the global context by key
|
</summary>
|
<param name="key">The key of the variable to remove</param>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetGlobalVariablesContext.Clear">
|
<summary>
|
Clears the global context variables
|
</summary>
|
</member>
|
<member name="T:Common.Logging.Log4Net.Log4NetLogger">
|
<summary>
|
Concrete implementation of <see cref="T:Common.Logging.ILog"/> interface specific to log4net 1.2.9-1.2.11.
|
</summary>
|
<remarks>
|
Log4net is capable of outputting extended debug information about where the current
|
message was generated: class name, method name, file, line, etc. Log4net assumes that the location
|
information should be gathered relative to where Debug() was called.
|
When using Common.Logging, Debug() is called in Common.Logging.Log4Net.Log4NetLogger. This means that
|
the location information will indicate that Common.Logging.Log4Net.Log4NetLogger always made
|
the call to Debug(). We need to know where Common.Logging.ILog.Debug()
|
was called. To do this we need to use the log4net.ILog.Logger.Log method and pass in a Type telling
|
log4net where in the stack to begin looking for location information.
|
</remarks>
|
<author>Gilles Bayon</author>
|
<author>Erich Eichinger</author>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetLogger.#ctor(log4net.Core.ILoggerWrapper)">
|
<summary>
|
Constructor
|
</summary>
|
<param name="log"></param>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetLogger.WriteInternal(Common.Logging.LogLevel,System.Object,System.Exception)">
|
<summary>
|
Actually sends the message to the underlying log system.
|
</summary>
|
<param name="logLevel">the level of this log event.</param>
|
<param name="message">the message to log</param>
|
<param name="exception">the exception to log (may be null)</param>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetLogger.GetLevel(Common.Logging.LogLevel)">
|
<summary>
|
Maps <see cref="T:Common.Logging.LogLevel"/> to log4net's <see cref="T:log4net.Core.Level"/>
|
</summary>
|
<param name="logLevel"></param>
|
</member>
|
<member name="P:Common.Logging.Log4Net.Log4NetLogger.IsTraceEnabled">
|
<summary>
|
|
</summary>
|
</member>
|
<member name="P:Common.Logging.Log4Net.Log4NetLogger.IsDebugEnabled">
|
<summary>
|
|
</summary>
|
</member>
|
<member name="P:Common.Logging.Log4Net.Log4NetLogger.IsInfoEnabled">
|
<summary>
|
|
</summary>
|
</member>
|
<member name="P:Common.Logging.Log4Net.Log4NetLogger.IsWarnEnabled">
|
<summary>
|
|
</summary>
|
</member>
|
<member name="P:Common.Logging.Log4Net.Log4NetLogger.IsErrorEnabled">
|
<summary>
|
|
</summary>
|
</member>
|
<member name="P:Common.Logging.Log4Net.Log4NetLogger.IsFatalEnabled">
|
<summary>
|
|
</summary>
|
</member>
|
<member name="P:Common.Logging.Log4Net.Log4NetLogger.GlobalVariablesContext">
|
<summary>
|
Returns the global context for variables
|
</summary>
|
</member>
|
<member name="P:Common.Logging.Log4Net.Log4NetLogger.ThreadVariablesContext">
|
<summary>
|
Returns the thread-specific context for variables
|
</summary>
|
</member>
|
<member name="T:Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter">
|
<summary>
|
Concrete subclass of ILoggerFactoryAdapter specific to log4net 1.2.9-1.2.11.
|
</summary>
|
<remarks>
|
The following configuration property values may be configured:
|
<list type="bullet">
|
<item><c>configType</c>: <c>INLINE|FILE|FILE-WATCH|EXTERNAL</c></item>
|
<item><c>configFile</c>: log4net configuration file path in case of FILE or FILE-WATCH</item>
|
</list>
|
The configType values have the following implications:
|
<list type="bullet">
|
<item>INLINE: simply calls <c>XmlConfigurator.Configure()</c></item>
|
<item>FILE: calls <c>XmlConfigurator.Configure(System.IO.FileInfo)</c> using <c>configFile</c>.</item>
|
<item>FILE-WATCH: calls <c>XmlConfigurator.ConfigureAndWatch(System.IO.FileInfo)</c> using <c>configFile</c>.</item>
|
<item>EXTERNAL: does nothing and expects log4net to be configured elsewhere.</item>
|
<item><any>: calls <c>BasicConfigurator.Configure()</c></item>
|
</list>
|
</remarks>
|
<example>
|
The following snippet shows an example of how to configure log4net with Common.Logging:
|
<code>
|
<configuration>
|
<configSections>
|
<sectionGroup name="common">
|
<section name="logging"
|
type="Common.Logging.ConfigurationSectionHandler, Common.Logging"
|
requirePermission="false" />
|
</sectionGroup>
|
<section name="log4net"
|
type="log4net.Config.Log4NetConfigurationSectionHandler"
|
requirePermission="false" />
|
</configSections>
|
|
<common>
|
<logging>
|
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net129">
|
<arg key="level" value="ALL" />
|
<arg key="configType" value="INLINE" />
|
</factoryAdapter>
|
</logging>
|
</common>
|
|
<log4net debug="false">
|
|
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender, log4net">
|
<param name="File" value="./Web.log" />
|
<param name="AppendToFile" value="true" />
|
<param name="MaxSizeRollBackups" value="1" />
|
<param name="MaximumFileSize" value="1GB" />
|
<param name="RollingStyle" value="Date" />
|
<param name="StaticLogFileName" value="false" />
|
|
<layout type="log4net.Layout.PatternLayout, log4net">
|
<param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n" />
|
</layout>
|
|
</appender>
|
|
<appender name="TraceAppender" type="log4net.Appender.TraceAppender">
|
<layout type="log4net.Layout.PatternLayout">
|
<param name="ConversionPattern" value="%-5p: %m" />
|
</layout>
|
</appender>
|
|
<root>
|
<level value="ALL" />
|
<appender-ref ref="TraceAppender" />
|
<appender-ref ref="RollingLogFileAppender" />
|
</root>
|
|
</log4net>
|
</configuration>
|
</code>
|
</example>
|
<author>Gilles Bayon</author>
|
<author>Erich Eichinger</author>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter.#ctor(Common.Logging.Configuration.NameValueCollection)">
|
<summary>
|
Constructor
|
</summary>
|
<param name="properties">configuration properties, see <see cref="T:Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter"/> for more.</param>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter.#ctor(System.Collections.Specialized.NameValueCollection)">
|
<summary>
|
Constructor for binary backwards compatibility with non-portableversions
|
</summary>
|
<param name="properties">The properties.</param>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter.#ctor(Common.Logging.Configuration.NameValueCollection,Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter.ILog4NetRuntime)">
|
<summary>
|
Constructor accepting configuration properties and an arbitrary
|
<see cref="T:Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter.ILog4NetRuntime"/> instance.
|
</summary>
|
<param name="properties">configuration properties, see <see cref="T:Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter"/> for more.</param>
|
<param name="runtime">a log4net runtime adapter</param>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter.CreateLogger(System.String)">
|
<summary>
|
Create a ILog instance by name
|
</summary>
|
<param name="name"></param>
|
<returns></returns>
|
</member>
|
<member name="T:Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter.ILog4NetRuntime">
|
<summary>
|
Abstract interface to the underlying log4net runtime
|
</summary>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter.ILog4NetRuntime.XmlConfiguratorConfigure">
|
<summary>Calls <see cref="M:log4net.Config.XmlConfigurator.Configure"/></summary>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter.ILog4NetRuntime.XmlConfiguratorConfigure(System.String)">
|
<summary>Calls <see cref="M:log4net.Config.XmlConfigurator.Configure(System.IO.FileInfo)"/></summary>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter.ILog4NetRuntime.XmlConfiguratorConfigureAndWatch(System.String)">
|
<summary>Calls <see cref="M:log4net.Config.XmlConfigurator.ConfigureAndWatch(System.IO.FileInfo)"/></summary>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter.ILog4NetRuntime.BasicConfiguratorConfigure">
|
<summary>Calls <see cref="M:log4net.Config.BasicConfigurator.Configure"/></summary>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter.ILog4NetRuntime.GetLogger(System.String)">
|
<summary>Calls <see cref="M:Common.Logging.LogManager.GetLogger(System.String)"/></summary>
|
</member>
|
<member name="T:Common.Logging.Log4Net.Log4NetThreadVariablesContext">
|
<summary>
|
A global context for logger variables
|
</summary>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetThreadVariablesContext.Set(System.String,System.Object)">
|
<summary>
|
Sets the value of a new or existing variable within the global context
|
</summary>
|
<param name="key">The key of the variable that is to be added</param>
|
<param name="value">The value to add</param>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetThreadVariablesContext.Get(System.String)">
|
<summary>
|
Gets the value of a variable within the global context
|
</summary>
|
<param name="key">The key of the variable to get</param>
|
<returns>The value or null if not found</returns>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetThreadVariablesContext.Contains(System.String)">
|
<summary>
|
Checks if a variable is set within the global context
|
</summary>
|
<param name="key">The key of the variable to check for</param>
|
<returns>True if the variable is set</returns>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetThreadVariablesContext.Remove(System.String)">
|
<summary>
|
Removes a variable from the global context by key
|
</summary>
|
<param name="key">The key of the variable to remove</param>
|
</member>
|
<member name="M:Common.Logging.Log4Net.Log4NetThreadVariablesContext.Clear">
|
<summary>
|
Clears the global context variables
|
</summary>
|
</member>
|
</members>
|
</doc>
|