Commit f42232e5 by mahaisong

fix:输出文件

parent 89de8dda
...@@ -687,29 +687,53 @@ namespace CsvCount_ES ...@@ -687,29 +687,53 @@ namespace CsvCount_ES
this.listBox1.Items.Add(" ES中找到的条数有:" + (totalCountDic.Count() - errorEsCount) + "条"); this.listBox1.Items.Add(" ES中找到的条数有:" + (totalCountDic.Count() - errorEsCount) + "条");
this.listBox1.Items.Add(" ES中找不到的条数有:" + errorEsCount + "条"); this.listBox1.Items.Add(" ES中找不到的条数有:" + errorEsCount + "条");
this.listBox1.Items.Add("3.1开始:写入JSON文件:"); this.listBox1.Items.Add("3.1开始:写入JSON文件:");
this.listBox1.Items.Add("3.2初始化文件数量: "+ textBox_output.Text + "个。"); this.listBox1.Items.Add("3.2初始化文件数量: " + textBox_output.Text + "个。");
this.listBox1.Items.Add("3.3并行写入文件中。");
} }
)); ));
Stopwatch writesw = new Stopwatch();
writesw.Start();
//输出到JSON文件中。
using (FileStream fs = new FileStream(filePath, FileMode.Append))
{
using (StreamWriter sw = new StreamWriter(fs))
{
sw.Write("[");
while (ResultQueue.Count == 0)
{
try
{
ResultItem tempitem = new ResultItem();
//将result结果放入到集合中。统一转为json字符串,写入文件。 ResultQueue.TryDequeue(out tempitem);
//string returnstr = JsonConvert.SerializeObject(result) + ","; //将result结果放入到集合中。统一转为json字符串,写入文件。
string returnstr = JsonConvert.SerializeObject(result) + ",";
//using (FileStream fs = new FileStream(filePath, FileMode.Append)) sw.Write(returnstr);
//{ sw.Flush();
// using (StreamWriter sw = new StreamWriter(fs)) sw.Close();
// {
// sw.Write(returnstr);
// sw.Flush();
// sw.Close();
// }
//}
}
catch (Exception exm)
{
MessageBox.Show(exm.ToString());
}
}
sw.Write("]");
}
}
writesw.Stop();
this.Invoke(new MethodInvoker(() =>
{
this.listBox1.Items.Add("3.4写入文件完毕:");
this.listBox1.Items.Add(" 写入文件完成用时:" + writesw.ElapsedMilliseconds + "毫秒!");
}
));
errorCount = 0; errorCount = 0;
while (ResultQueue.Count > 0) while (ResultQueue.Count > 0)
......
<?xml version="1.0"?>
<doc>
<assembly>
<name>Common.Logging.Core</name>
</assembly>
<members>
<member name="T:Common.Logging.Factory.StringFormatMethodAttribute">
<summary>
Indicates that the marked method builds string by format pattern and (optional) arguments.
Parameter, which contains format string, should be given in constructor. The format string
should be in <see cref="M:System.String.Format(System.IFormatProvider,System.String,System.Object[])"/>-like form
</summary>
<example><code>
[StringFormatMethod("message")]
public void ShowError(string message, params object[] args) { /* do something */ }
public void Foo() {
ShowError("Failed: {0}"); // Warning: Non-existing argument in format string
}
</code></example>
</member>
<member name="M:Common.Logging.Factory.StringFormatMethodAttribute.#ctor(System.String)">
<param name="formatParameterName">
Specifies which parameter of an annotated method should be treated as format-string
</param>
</member>
<member name="P:Common.Logging.Factory.StringFormatMethodAttribute.FormatParameterName">
<summary>
The name of the string parameter being formatted
</summary>
</member>
<member name="T:Common.Logging.FormatMessageHandler">
<summary>
The type of method that is passed into e.g. <see cref="M:Common.Logging.ILog.Debug(System.Action{Common.Logging.FormatMessageHandler})"/>
and allows the callback method to "submit" it's message to the underlying output system.
</summary>
<param name="format">the format argument as in <see cref="M:System.String.Format(System.String,System.Object[])"/></param>
<param name="args">the argument list as in <see cref="M:System.String.Format(System.String,System.Object[])"/></param>
<seealso cref="T:Common.Logging.ILog"/>
<author>Erich Eichinger</author>
</member>
<member name="T:Common.Logging.IConfigurationReader">
<summary>
Interface for basic operations to read .NET application configuration information.
</summary>
<remarks>Provides a simple abstraction to handle BCL API differences between .NET 1.x and 2.0. Also
useful for testing scenarios.</remarks>
<author>Mark Pollack</author>
</member>
<member name="M:Common.Logging.IConfigurationReader.GetSection(System.String)">
<summary>
Parses the configuration section and returns the resulting object.
</summary>
<remarks>
<p>
Primary purpose of this method is to allow us to parse and
load configuration sections using the same API regardless
of the .NET framework version.
</p>
See also <c>System.Configuration.ConfigurationManager</c>
</remarks>
<param name="sectionName">Name of the configuration section.</param>
<returns>Object created by a corresponding IConfigurationSectionHandler.</returns>
</member>
<member name="T:Common.Logging.ILog">
<summary>
A simple logging interface abstracting logging APIs.
</summary>
<remarks>
<para>
Implementations should defer calling a message's <see cref="M:System.Object.ToString"/> until the message really needs
to be logged to avoid performance penalties.
</para>
<para>
Each <see cref="T:Common.Logging.ILog"/> log method offers to pass in a <see cref="T:System.Action`1"/> instead of the actual message.
Using this style has the advantage to defer possibly expensive message argument evaluation and formatting (and formatting arguments!) until the message gets
actually logged. If the message is not logged at all (e.g. due to <see cref="T:Common.Logging.LogLevel"/> settings),
you won't have to pay the peformance penalty of creating the message.
</para>
</remarks>
<example>
The example below demonstrates using callback style for creating the message, where the call to the
<see cref="M:System.Random.NextDouble"/> and the underlying <see cref="M:System.String.Format(System.String,System.Object[])"/> only happens, if level <see cref="F:Common.Logging.LogLevel.Debug"/> is enabled:
<code>
Log.Debug( m=&gt;m(&quot;result is {0}&quot;, random.NextDouble()) );
Log.Debug(delegate(m) { m(&quot;result is {0}&quot;, random.NextDouble()); });
</code>
</example>
<seealso cref="T:System.Action`1"/>
<author>Mark Pollack</author>
<author>Bruno Baia</author>
<author>Erich Eichinger</author>
</member>
<member name="M:Common.Logging.ILog.Trace(System.Object)">
<summary>
Log a message object with the <see cref="F:Common.Logging.LogLevel.Trace"/> level.
</summary>
<param name="message">The message object to log.</param>
</member>
<member name="M:Common.Logging.ILog.Trace(System.Object,System.Exception)">
<summary>
Log a message object with the <see cref="F:Common.Logging.LogLevel.Trace"/> level including
the stack trace of the <see cref="T:System.Exception"/> passed
as a parameter.
</summary>
<param name="message">The message object to log.</param>
<param name="exception">The exception to log, including its stack trace.</param>
</member>
<member name="M:Common.Logging.ILog.TraceFormat(System.String,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Trace"/> level.
</summary>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="args">the list of format arguments</param>
</member>
<member name="M:Common.Logging.ILog.TraceFormat(System.String,System.Exception,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Trace"/> level.
</summary>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="exception">The exception to log.</param>
<param name="args">the list of format arguments</param>
</member>
<member name="M:Common.Logging.ILog.TraceFormat(System.IFormatProvider,System.String,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Trace"/> level.
</summary>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="args"></param>
</member>
<member name="M:Common.Logging.ILog.TraceFormat(System.IFormatProvider,System.String,System.Exception,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Trace"/> level.
</summary>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="exception">The exception to log.</param>
<param name="args"></param>
</member>
<member name="M:Common.Logging.ILog.Trace(System.Action{Common.Logging.FormatMessageHandler})">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Trace"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
</member>
<member name="M:Common.Logging.ILog.Trace(System.Action{Common.Logging.FormatMessageHandler},System.Exception)">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Trace"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
<param name="exception">The exception to log, including its stack trace.</param>
</member>
<member name="M:Common.Logging.ILog.Trace(System.IFormatProvider,System.Action{Common.Logging.FormatMessageHandler})">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Trace"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
</member>
<member name="M:Common.Logging.ILog.Trace(System.IFormatProvider,System.Action{Common.Logging.FormatMessageHandler},System.Exception)">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Trace"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
<param name="exception">The exception to log, including its stack trace.</param>
</member>
<member name="M:Common.Logging.ILog.Debug(System.Object)">
<summary>
Log a message object with the <see cref="F:Common.Logging.LogLevel.Debug"/> level.
</summary>
<param name="message">The message object to log.</param>
</member>
<member name="M:Common.Logging.ILog.Debug(System.Object,System.Exception)">
<summary>
Log a message object with the <see cref="F:Common.Logging.LogLevel.Debug"/> level including
the stack trace of the <see cref="T:System.Exception"/> passed
as a parameter.
</summary>
<param name="message">The message object to log.</param>
<param name="exception">The exception to log, including its stack trace.</param>
</member>
<member name="M:Common.Logging.ILog.DebugFormat(System.String,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Debug"/> level.
</summary>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="args">the list of format arguments</param>
</member>
<member name="M:Common.Logging.ILog.DebugFormat(System.String,System.Exception,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Debug"/> level.
</summary>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="exception">The exception to log.</param>
<param name="args">the list of format arguments</param>
</member>
<member name="M:Common.Logging.ILog.DebugFormat(System.IFormatProvider,System.String,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Debug"/> level.
</summary>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="args"></param>
</member>
<member name="M:Common.Logging.ILog.DebugFormat(System.IFormatProvider,System.String,System.Exception,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Debug"/> level.
</summary>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="exception">The exception to log.</param>
<param name="args"></param>
</member>
<member name="M:Common.Logging.ILog.Debug(System.Action{Common.Logging.FormatMessageHandler})">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Debug"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
</member>
<member name="M:Common.Logging.ILog.Debug(System.Action{Common.Logging.FormatMessageHandler},System.Exception)">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Debug"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
<param name="exception">The exception to log, including its stack trace.</param>
</member>
<member name="M:Common.Logging.ILog.Debug(System.IFormatProvider,System.Action{Common.Logging.FormatMessageHandler})">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Debug"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
</member>
<member name="M:Common.Logging.ILog.Debug(System.IFormatProvider,System.Action{Common.Logging.FormatMessageHandler},System.Exception)">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Debug"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
<param name="exception">The exception to log, including its stack Debug.</param>
</member>
<member name="M:Common.Logging.ILog.Info(System.Object)">
<summary>
Log a message object with the <see cref="F:Common.Logging.LogLevel.Info"/> level.
</summary>
<param name="message">The message object to log.</param>
</member>
<member name="M:Common.Logging.ILog.Info(System.Object,System.Exception)">
<summary>
Log a message object with the <see cref="F:Common.Logging.LogLevel.Info"/> level including
the stack trace of the <see cref="T:System.Exception"/> passed
as a parameter.
</summary>
<param name="message">The message object to log.</param>
<param name="exception">The exception to log, including its stack trace.</param>
</member>
<member name="M:Common.Logging.ILog.InfoFormat(System.String,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Info"/> level.
</summary>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="args">the list of format arguments</param>
</member>
<member name="M:Common.Logging.ILog.InfoFormat(System.String,System.Exception,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Info"/> level.
</summary>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="exception">The exception to log.</param>
<param name="args">the list of format arguments</param>
</member>
<member name="M:Common.Logging.ILog.InfoFormat(System.IFormatProvider,System.String,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Info"/> level.
</summary>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="args"></param>
</member>
<member name="M:Common.Logging.ILog.InfoFormat(System.IFormatProvider,System.String,System.Exception,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Info"/> level.
</summary>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="exception">The exception to log.</param>
<param name="args"></param>
</member>
<member name="M:Common.Logging.ILog.Info(System.Action{Common.Logging.FormatMessageHandler})">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Info"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
</member>
<member name="M:Common.Logging.ILog.Info(System.Action{Common.Logging.FormatMessageHandler},System.Exception)">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Info"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
<param name="exception">The exception to log, including its stack trace.</param>
</member>
<member name="M:Common.Logging.ILog.Info(System.IFormatProvider,System.Action{Common.Logging.FormatMessageHandler})">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Info"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
</member>
<member name="M:Common.Logging.ILog.Info(System.IFormatProvider,System.Action{Common.Logging.FormatMessageHandler},System.Exception)">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Info"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
<param name="exception">The exception to log, including its stack Info.</param>
</member>
<member name="M:Common.Logging.ILog.Warn(System.Object)">
<summary>
Log a message object with the <see cref="F:Common.Logging.LogLevel.Warn"/> level.
</summary>
<param name="message">The message object to log.</param>
</member>
<member name="M:Common.Logging.ILog.Warn(System.Object,System.Exception)">
<summary>
Log a message object with the <see cref="F:Common.Logging.LogLevel.Warn"/> level including
the stack trace of the <see cref="T:System.Exception"/> passed
as a parameter.
</summary>
<param name="message">The message object to log.</param>
<param name="exception">The exception to log, including its stack trace.</param>
</member>
<member name="M:Common.Logging.ILog.WarnFormat(System.String,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Warn"/> level.
</summary>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="args">the list of format arguments</param>
</member>
<member name="M:Common.Logging.ILog.WarnFormat(System.String,System.Exception,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Warn"/> level.
</summary>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="exception">The exception to log.</param>
<param name="args">the list of format arguments</param>
</member>
<member name="M:Common.Logging.ILog.WarnFormat(System.IFormatProvider,System.String,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Warn"/> level.
</summary>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="args"></param>
</member>
<member name="M:Common.Logging.ILog.WarnFormat(System.IFormatProvider,System.String,System.Exception,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Warn"/> level.
</summary>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="exception">The exception to log.</param>
<param name="args"></param>
</member>
<member name="M:Common.Logging.ILog.Warn(System.Action{Common.Logging.FormatMessageHandler})">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Warn"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
</member>
<member name="M:Common.Logging.ILog.Warn(System.Action{Common.Logging.FormatMessageHandler},System.Exception)">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Warn"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
<param name="exception">The exception to log, including its stack trace.</param>
</member>
<member name="M:Common.Logging.ILog.Warn(System.IFormatProvider,System.Action{Common.Logging.FormatMessageHandler})">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Warn"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
</member>
<member name="M:Common.Logging.ILog.Warn(System.IFormatProvider,System.Action{Common.Logging.FormatMessageHandler},System.Exception)">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Warn"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
<param name="exception">The exception to log, including its stack Warn.</param>
</member>
<member name="M:Common.Logging.ILog.Error(System.Object)">
<summary>
Log a message object with the <see cref="F:Common.Logging.LogLevel.Error"/> level.
</summary>
<param name="message">The message object to log.</param>
</member>
<member name="M:Common.Logging.ILog.Error(System.Object,System.Exception)">
<summary>
Log a message object with the <see cref="F:Common.Logging.LogLevel.Error"/> level including
the stack trace of the <see cref="T:System.Exception"/> passed
as a parameter.
</summary>
<param name="message">The message object to log.</param>
<param name="exception">The exception to log, including its stack trace.</param>
</member>
<member name="M:Common.Logging.ILog.ErrorFormat(System.String,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Error"/> level.
</summary>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="args">the list of format arguments</param>
</member>
<member name="M:Common.Logging.ILog.ErrorFormat(System.String,System.Exception,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Error"/> level.
</summary>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="exception">The exception to log.</param>
<param name="args">the list of format arguments</param>
</member>
<member name="M:Common.Logging.ILog.ErrorFormat(System.IFormatProvider,System.String,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Error"/> level.
</summary>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="args"></param>
</member>
<member name="M:Common.Logging.ILog.ErrorFormat(System.IFormatProvider,System.String,System.Exception,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Error"/> level.
</summary>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="exception">The exception to log.</param>
<param name="args"></param>
</member>
<member name="M:Common.Logging.ILog.Error(System.Action{Common.Logging.FormatMessageHandler})">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Error"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
</member>
<member name="M:Common.Logging.ILog.Error(System.Action{Common.Logging.FormatMessageHandler},System.Exception)">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Error"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
<param name="exception">The exception to log, including its stack trace.</param>
</member>
<member name="M:Common.Logging.ILog.Error(System.IFormatProvider,System.Action{Common.Logging.FormatMessageHandler})">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Error"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
</member>
<member name="M:Common.Logging.ILog.Error(System.IFormatProvider,System.Action{Common.Logging.FormatMessageHandler},System.Exception)">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Error"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
<param name="exception">The exception to log, including its stack Error.</param>
</member>
<member name="M:Common.Logging.ILog.Fatal(System.Object)">
<summary>
Log a message object with the <see cref="F:Common.Logging.LogLevel.Fatal"/> level.
</summary>
<param name="message">The message object to log.</param>
</member>
<member name="M:Common.Logging.ILog.Fatal(System.Object,System.Exception)">
<summary>
Log a message object with the <see cref="F:Common.Logging.LogLevel.Fatal"/> level including
the stack trace of the <see cref="T:System.Exception"/> passed
as a parameter.
</summary>
<param name="message">The message object to log.</param>
<param name="exception">The exception to log, including its stack trace.</param>
</member>
<member name="M:Common.Logging.ILog.FatalFormat(System.String,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Fatal"/> level.
</summary>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="args">the list of format arguments</param>
</member>
<member name="M:Common.Logging.ILog.FatalFormat(System.String,System.Exception,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Fatal"/> level.
</summary>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="exception">The exception to log.</param>
<param name="args">the list of format arguments</param>
</member>
<member name="M:Common.Logging.ILog.FatalFormat(System.IFormatProvider,System.String,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Fatal"/> level.
</summary>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="args"></param>
</member>
<member name="M:Common.Logging.ILog.FatalFormat(System.IFormatProvider,System.String,System.Exception,System.Object[])">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Fatal"/> level.
</summary>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="format">The format of the message object to log.<see cref="M:System.String.Format(System.String,System.Object[])"/> </param>
<param name="exception">The exception to log.</param>
<param name="args"></param>
</member>
<member name="M:Common.Logging.ILog.Fatal(System.Action{Common.Logging.FormatMessageHandler})">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Fatal"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
</member>
<member name="M:Common.Logging.ILog.Fatal(System.Action{Common.Logging.FormatMessageHandler},System.Exception)">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Fatal"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
<param name="exception">The exception to log, including its stack trace.</param>
</member>
<member name="M:Common.Logging.ILog.Fatal(System.IFormatProvider,System.Action{Common.Logging.FormatMessageHandler})">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Fatal"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
</member>
<member name="M:Common.Logging.ILog.Fatal(System.IFormatProvider,System.Action{Common.Logging.FormatMessageHandler},System.Exception)">
<summary>
Log a message with the <see cref="F:Common.Logging.LogLevel.Fatal"/> level using a callback to obtain the message
</summary>
<remarks>
Using this method avoids the cost of creating a message and evaluating message arguments
that probably won't be logged due to loglevel settings.
</remarks>
<param name="formatProvider">An <see cref="T:System.IFormatProvider"/> that supplies culture-specific formatting information.</param>
<param name="formatMessageCallback">A callback used by the logger to obtain the message if log level is matched</param>
<param name="exception">The exception to log, including its stack Fatal.</param>
</member>
<member name="P:Common.Logging.ILog.IsTraceEnabled">
<summary>
Checks if this logger is enabled for the <see cref="F:Common.Logging.LogLevel.Trace"/> level.
</summary>
</member>
<member name="P:Common.Logging.ILog.IsDebugEnabled">
<summary>
Checks if this logger is enabled for the <see cref="F:Common.Logging.LogLevel.Debug"/> level.
</summary>
</member>
<member name="P:Common.Logging.ILog.IsErrorEnabled">
<summary>
Checks if this logger is enabled for the <see cref="F:Common.Logging.LogLevel.Error"/> level.
</summary>
</member>
<member name="P:Common.Logging.ILog.IsFatalEnabled">
<summary>
Checks if this logger is enabled for the <see cref="F:Common.Logging.LogLevel.Fatal"/> level.
</summary>
</member>
<member name="P:Common.Logging.ILog.IsInfoEnabled">
<summary>
Checks if this logger is enabled for the <see cref="F:Common.Logging.LogLevel.Info"/> level.
</summary>
</member>
<member name="P:Common.Logging.ILog.IsWarnEnabled">
<summary>
Checks if this logger is enabled for the <see cref="F:Common.Logging.LogLevel.Warn"/> level.
</summary>
</member>
<member name="P:Common.Logging.ILog.GlobalVariablesContext">
<summary>
Returns the global context for variables
</summary>
</member>
<member name="P:Common.Logging.ILog.ThreadVariablesContext">
<summary>
Returns the thread-specific context for variables
</summary>
</member>
<member name="P:Common.Logging.ILog.NestedThreadVariablesContext">
<summary>
Returns the thread-specific context for nested variables (for NDC, eg.)
</summary>
</member>
<member name="T:Common.Logging.ILoggerFactoryAdapter">
<summary>
LoggerFactoryAdapter interface is used internally by LogManager
Only developers wishing to write new Common.Logging adapters need to
worry about this interface.
</summary>
<author>Gilles Bayon</author>
</member>
<member name="M:Common.Logging.ILoggerFactoryAdapter.GetLogger(System.Type)">
<summary>
Get a ILog instance by type.
</summary>
<param name="type">The type to use for the logger</param>
<returns></returns>
</member>
<member name="M:Common.Logging.ILoggerFactoryAdapter.GetLogger(System.String)">
<summary>
Get a ILog instance by key.
</summary>
<param name="key">The key of the logger</param>
<returns></returns>
</member>
<member name="T:Common.Logging.ILogManager">
<summary>
Interface for LogManager
</summary>
</member>
<member name="P:Common.Logging.ILogManager.COMMON_LOGGING_SECTION">
<summary>
The key of the default configuration section to read settings from.
</summary>
<remarks>
You can always change the source of your configuration settings by setting another <see cref="T:Common.Logging.IConfigurationReader"/> instance
on <see cref="P:Common.Logging.ILogManager.ConfigurationReader"/>.
</remarks>
</member>
<member name="M:Common.Logging.ILogManager.Reset">
<summary>
Reset the <see cref="N:Common.Logging" /> infrastructure to its default settings. This means, that configuration settings
will be re-read from section <c>&lt;common/logging&gt;</c> of your <c>app.config</c>.
</summary>
<remarks>
This is mainly used for unit testing, you wouldn't normally use this in your applications.<br/>
<b>Note:</b><see cref="T:Common.Logging.ILog"/> instances already handed out from this LogManager are not(!) affected.
Resetting LogManager only affects new instances being handed out.
</remarks>
</member>
<member name="M:Common.Logging.ILogManager.Reset(Common.Logging.IConfigurationReader)">
<summary>
Reset the <see cref="N:Common.Logging" /> infrastructure to its default settings. This means, that configuration settings
will be re-read from section <c>&lt;common/logging&gt;</c> of your <c>app.config</c>.
</summary>
<remarks>
This is mainly used for unit testing, you wouldn't normally use this in your applications.<br/>
<b>Note:</b><see cref="T:Common.Logging.ILog"/> instances already handed out from this LogManager are not(!) affected.
Resetting LogManager only affects new instances being handed out.
</remarks>
<param name="reader">
the <see cref="T:Common.Logging.IConfigurationReader"/> instance to obtain settings for
re-initializing the LogManager.
</param>
</member>
<member name="P:Common.Logging.ILogManager.ConfigurationReader">
<summary>
Gets the configuration reader used to initialize the LogManager.
</summary>
<remarks>Primarily used for testing purposes but maybe useful to obtain configuration
information from some place other than the .NET application configuration file.</remarks>
<value>The configuration reader.</value>
</member>
<member name="P:Common.Logging.ILogManager.Adapter">
<summary>
Gets or sets the adapter.
</summary>
<value>The adapter.</value>
</member>
<member name="M:Common.Logging.ILogManager.GetCurrentClassLogger">
<summary>
Gets the logger by calling <see cref="M:Common.Logging.ILoggerFactoryAdapter.GetLogger(System.Type)"/>
on the currently configured <see cref="P:Common.Logging.ILogManager.Adapter"/> using the type of the calling class.
</summary>
<remarks>
This method needs to inspect the StackTrace in order to determine the calling
class. This of course comes with a performance penalty, thus you shouldn't call it too
often in your application.
</remarks>
<seealso cref="M:Common.Logging.ILogManager.GetLogger(System.Type)"/>
<returns>the logger instance obtained from the current <see cref="P:Common.Logging.ILogManager.Adapter"/></returns>
</member>
<member name="M:Common.Logging.ILogManager.GetLogger``1">
<summary>
Gets the logger by calling <see cref="M:Common.Logging.ILoggerFactoryAdapter.GetLogger(System.Type)"/>
on the currently configured <see cref="P:Common.Logging.ILogManager.Adapter"/> using the specified type.
</summary>
<returns>the logger instance obtained from the current <see cref="P:Common.Logging.ILogManager.Adapter"/></returns>
</member>
<member name="M:Common.Logging.ILogManager.GetLogger(System.Type)">
<summary>
Gets the logger by calling <see cref="M:Common.Logging.ILoggerFactoryAdapter.GetLogger(System.Type)"/>
on the currently configured <see cref="P:Common.Logging.ILogManager.Adapter"/> using the specified type.
</summary>
<param name="type">The type.</param>
<returns>the logger instance obtained from the current <see cref="P:Common.Logging.ILogManager.Adapter"/></returns>
</member>
<member name="M:Common.Logging.ILogManager.GetLogger(System.String)">
<summary>
Gets the logger by calling <see cref="M:Common.Logging.ILoggerFactoryAdapter.GetLogger(System.String)"/>
on the currently configured <see cref="P:Common.Logging.ILogManager.Adapter"/> using the specified key.
</summary>
<param name="key">The key.</param>
<returns>the logger instance obtained from the current <see cref="P:Common.Logging.ILogManager.Adapter"/></returns>
</member>
<member name="T:Common.Logging.INestedVariablesContext">
<summary>
A context for logger variables
</summary>
</member>
<member name="M:Common.Logging.INestedVariablesContext.Push(System.String)">
<summary>Pushes a new context message into this stack.</summary>
<param name="text">The new context message text.</param>
<returns>
An <see cref="T:System.IDisposable" /> that can be used to clean up the context stack.
</returns>
</member>
<member name="M:Common.Logging.INestedVariablesContext.Pop">
<summary>Removes the top context from this stack.</summary>
<returns>The message in the context that was removed from the top of this stack.</returns>
</member>
<member name="M:Common.Logging.INestedVariablesContext.Clear">
<summary>
Remove all items from nested context
</summary>
</member>
<member name="P:Common.Logging.INestedVariablesContext.HasItems">
<summary>
Returns true if there is at least one item in the nested context; false, if empty
</summary>
</member>
<member name="T:Common.Logging.IVariablesContext">
<summary>
A context for logger variables
</summary>
</member>
<member name="M:Common.Logging.IVariablesContext.Set(System.String,System.Object)">
<summary>
Sets the value of a new or existing variable within the 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.IVariablesContext.Get(System.String)">
<summary>
Gets the value of a variable within the 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.IVariablesContext.Contains(System.String)">
<summary>
Checks if a variable is set within the 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.IVariablesContext.Remove(System.String)">
<summary>
Removes a variable from the context by key
</summary>
<param name="key">The key of the variable to remove</param>
</member>
<member name="M:Common.Logging.IVariablesContext.Clear">
<summary>
Clears the context variables
</summary>
</member>
<member name="T:Common.Logging.LogLevel">
<summary>
The 7 possible logging levels
</summary>
<author>Gilles Bayon</author>
</member>
<member name="F:Common.Logging.LogLevel.All">
<summary>
All logging levels
</summary>
</member>
<member name="F:Common.Logging.LogLevel.Trace">
<summary>
A trace logging level
</summary>
</member>
<member name="F:Common.Logging.LogLevel.Debug">
<summary>
A debug logging level
</summary>
</member>
<member name="F:Common.Logging.LogLevel.Info">
<summary>
A info logging level
</summary>
</member>
<member name="F:Common.Logging.LogLevel.Warn">
<summary>
A warn logging level
</summary>
</member>
<member name="F:Common.Logging.LogLevel.Error">
<summary>
An error logging level
</summary>
</member>
<member name="F:Common.Logging.LogLevel.Fatal">
<summary>
A fatal logging level
</summary>
</member>
<member name="F:Common.Logging.LogLevel.Off">
<summary>
Do not log anything.
</summary>
</member>
</members>
</doc>
<?xml version="1.0"?>
<doc>
<assembly>
<name>Common.Logging.Log4Net208</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>
&lt;log4net&gt;
&lt;appender name=&quot;CommonLoggingAppender&quot;
type=&quot;Common.Logging.Log4Net.CommonLoggingAppender, Common.Logging.Log4Net129&quot;&gt;
&lt;layout type=&quot;log4net.Layout.PatternLayout, log4net&quot;&gt;
&lt;param name=&quot;ConversionPattern&quot; value=&quot;%level - %class.%method: %message&quot; /&gt;
&lt;/layout&gt;
&lt;/appender&gt;
&lt;root&gt;
&lt;level value=&quot;ALL&quot; /&gt;
&lt;appender-ref ref=&quot;CommonLoggingAppender&quot; /&gt;
&lt;/root&gt;
&lt;/log4net&gt;
</code>
</example>
<author>Erich Eichinger</author>
</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="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="P:Common.Logging.Log4Net.CommonLoggingAppender.Layout">
<summary>
Get or set the layout for this appender
</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="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="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="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.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="P:Common.Logging.Log4Net.Log4NetLogger.NestedThreadVariablesContext">
<summary>
</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>&lt;any&gt;: calls <c>BasicConfigurator.Configure()</c></item>
</list>
</remarks>
<example>
The following snippet shows an example of how to configure log4net with Common.Logging:
<code>
&lt;configuration&gt;
&lt;configSections&gt;
&lt;sectionGroup name=&quot;common&quot;&gt;
&lt;section name=&quot;logging&quot;
type=&quot;Common.Logging.ConfigurationSectionHandler, Common.Logging&quot;
requirePermission=&quot;false&quot; /&gt;
&lt;/sectionGroup&gt;
&lt;section name=&quot;log4net&quot;
type=&quot;log4net.Config.Log4NetConfigurationSectionHandler&quot;
requirePermission=&quot;false&quot; /&gt;
&lt;/configSections&gt;
&lt;common&gt;
&lt;logging&gt;
&lt;factoryAdapter type=&quot;Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net129&quot;&gt;
&lt;arg key=&quot;level&quot; value=&quot;ALL&quot; /&gt;
&lt;arg key=&quot;configType&quot; value=&quot;INLINE&quot; /&gt;
&lt;/factoryAdapter&gt;
&lt;/logging&gt;
&lt;/common&gt;
&lt;log4net debug=&quot;false&quot;&gt;
&lt;appender name=&quot;RollingLogFileAppender&quot; type=&quot;log4net.Appender.RollingFileAppender, log4net&quot;&gt;
&lt;param name=&quot;File&quot; value=&quot;./Web.log&quot; /&gt;
&lt;param name=&quot;AppendToFile&quot; value=&quot;true&quot; /&gt;
&lt;param name=&quot;MaxSizeRollBackups&quot; value=&quot;1&quot; /&gt;
&lt;param name=&quot;MaximumFileSize&quot; value=&quot;1GB&quot; /&gt;
&lt;param name=&quot;RollingStyle&quot; value=&quot;Date&quot; /&gt;
&lt;param name=&quot;StaticLogFileName&quot; value=&quot;false&quot; /&gt;
&lt;layout type=&quot;log4net.Layout.PatternLayout, log4net&quot;&gt;
&lt;param name=&quot;ConversionPattern&quot; value=&quot;%d [%t] %-5p %c - %m%n&quot; /&gt;
&lt;/layout&gt;
&lt;/appender&gt;
&lt;appender name=&quot;TraceAppender&quot; type=&quot;log4net.Appender.TraceAppender&quot;&gt;
&lt;layout type=&quot;log4net.Layout.PatternLayout&quot;&gt;
&lt;param name=&quot;ConversionPattern&quot; value=&quot;%-5p: %m&quot; /&gt;
&lt;/layout&gt;
&lt;/appender&gt;
&lt;root&gt;
&lt;level value=&quot;ALL&quot; /&gt;
&lt;appender-ref ref=&quot;TraceAppender&quot; /&gt;
&lt;appender-ref ref=&quot;RollingLogFileAppender&quot; /&gt;
&lt;/root&gt;
&lt;/log4net&gt;
&lt;/configuration&gt;
</code>
</example>
<author>Gilles Bayon</author>
<author>Erich Eichinger</author>
</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="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.Log4NetNestedThreadVariablesContext">
<summary>
A global context for logger variables
</summary>
</member>
<member name="M:Common.Logging.Log4Net.Log4NetNestedThreadVariablesContext.Push(System.String)">
<summary>Pushes a new context message into this stack.</summary>
<param name="text">The new context message text.</param>
<returns>
An <see cref="T:System.IDisposable" /> that can be used to clean up the context stack.
</returns>
</member>
<member name="M:Common.Logging.Log4Net.Log4NetNestedThreadVariablesContext.Pop">
<summary>Removes the top context from this stack.</summary>
<returns>The message in the context that was removed from the top of this stack.</returns>
</member>
<member name="M:Common.Logging.Log4Net.Log4NetNestedThreadVariablesContext.Clear">
<summary>
Remove all items from nested context
</summary>
</member>
<member name="P:Common.Logging.Log4Net.Log4NetNestedThreadVariablesContext.HasItems">
<summary>
Returns true if there is at least one item in the nested context; false, if empty
</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>
This source diff could not be displayed because it is too large. You can view the blob instead.
<?xml version="1.0" encoding="utf-8" ?>
<log4net>
<appender name="errorAppender" type="log4net.Appender.RollingFileAppender">
<filter type="log4net.Filter.LevelMatchFilter">
<levelToMatch value="ERROR" />
</filter>
<filter type="log4net.Filter.DenyAllFilter" />
<file value="Logs\err.log" />
<encoding value="utf-8"/>
<preserveLogFileNameExtension value="true" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<datePattern value="yyyyMMdd" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
</layout>
</appender>
<appender name="infoAppender" type="log4net.Appender.RollingFileAppender">
<filter type="log4net.Filter.LevelMatchFilter">
<levelToMatch value="INFO" />
</filter>
<filter type="log4net.Filter.DenyAllFilter" />
<file value="Logs\info.log" />
<encoding value="utf-8"/>
<preserveLogFileNameExtension value="true" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<datePattern value="yyyyMMdd" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
</layout>
</appender>
<appender name="debugAppender" type="log4net.Appender.RollingFileAppender">
<filter type="log4net.Filter.LevelMatchFilter">
<levelToMatch value="DEBUG" />
</filter>
<filter type="log4net.Filter.DenyAllFilter" />
<file value="Logs\debug.log" />
<encoding value="utf-8"/>
<preserveLogFileNameExtension value="true" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<datePattern value="yyyyMMdd" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
</layout>
</appender>
<appender name="perfAppender" type="log4net.Appender.RollingFileAppender">
<filter type="log4net.Filter.LevelMatchFilter">
<levelToMatch value="INFO" />
</filter>
<filter type="log4net.Filter.DenyAllFilter" />
<file value="Logs\perf.log" />
<encoding value="utf-8"/>
<preserveLogFileNameExtension value="true" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<datePattern value="yyyyMMdd" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %logger - %message%newline" />
</layout>
</appender>
<root>
<level value="ALL" />
<appender-ref ref="errorAppender" />
<appender-ref ref="infoAppender" />
<appender-ref ref="debugAppender" />
</root>
<logger name="Performance" additivity="false">
<level value="ALL" />
<appender-ref ref="perfAppender" />
</logger>
</log4net>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
<sectionGroup name="common">
<section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
</sectionGroup>
</configSections>
<connectionStrings>
<add name="ESDatabase" connectionString="host=mech.palaspom.com|tank.palaspom.com;port=19235;defaultIndex=palas" />
</connectionStrings>
<common>
<logging>
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net208">
<!--FILE
FILE-WATCH log4net节点在其他独立文件内部。
INLINE log4net节点在配置app.config内部。
EXTERNAL-->
<arg key="configType" value="FILE-WATCH" />
<arg key="configFile" value="~/Config/log4net.config" />
</factoryAdapter>
</logging>
</common>
<appSettings>
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
//要求通过newsid=itemid(ES中的)一一对应。 ++ /dev/null
//要求通过newsid=itemid(ES中的)一一对应。
//要求取得以下字段,并返回统一包装的JSON结构。(AnalyzeData只有1个,里面的数据是common+reader(两者其中有值,值也是一样的,任取其一。可能存在相互补充的情况,合并为1个。))
[
{
"ItemID": "文章ID",
"ClickCount": "点击次数",
"Url": "文章Url",
"CleanTitle": "标题",
"CleanText": "正文",
"PubDate": "页面显示发布时间",
"MediaName": "21世纪经济报道",
"DuplicationID": "相似转载ID(早先入库的相似文章ID,第一篇该字段为空,其他均为第一篇的ID)",
"AnalyzeData语义分析结果字段": {
"MarketIDs": " 品类/市场common编号reader编号:有值任取其一",
"BlockIDs": "主题/板块编号common编号,reader编号:有值任取其一",
"StockIDs": "股票编号common编号,reader编号:有值任取其一",
"IG": ""
}
}
]
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -15,32 +15,3 @@ C:\Users\admin\Desktop\CsvCount_ES\CsvCount_ES\bin\Debug\CsvCount_ES.pdb ...@@ -15,32 +15,3 @@ C:\Users\admin\Desktop\CsvCount_ES\CsvCount_ES\bin\Debug\CsvCount_ES.pdb
C:\Users\admin\Desktop\CsvCount_ES\CsvCount_ES\obj\Debug\CsvCount_ES.Form1.resources C:\Users\admin\Desktop\CsvCount_ES\CsvCount_ES\obj\Debug\CsvCount_ES.Form1.resources
C:\Users\admin\Desktop\CsvCount_ES\CsvCount_ES\obj\Debug\CsvCount_ES.Properties.Resources.resources C:\Users\admin\Desktop\CsvCount_ES\CsvCount_ES\obj\Debug\CsvCount_ES.Properties.Resources.resources
C:\Users\admin\Desktop\CsvCount_ES\CsvCount_ES\obj\Debug\CsvCount_ES.csproj.GenerateResource.Cache C:\Users\admin\Desktop\CsvCount_ES\CsvCount_ES\obj\Debug\CsvCount_ES.csproj.GenerateResource.Cache
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\Config\log4net.config
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\OutPut\模板.json
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\CsvCount_ES.exe.config
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\CsvCount_ES.exe
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\CsvCount_ES.pdb
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\Common.Logging.Core.dll
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\Common.Logging.dll
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\Common.Logging.Log4Net208.dll
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\Elasticsearch.Net.dll
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\log4net.dll
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\MongoDB.Bson.dll
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\Nest.dll
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\Newtonsoft.Json.dll
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\Common.Logging.pdb
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\Common.Logging.xml
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\Common.Logging.Core.pdb
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\Common.Logging.Core.xml
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\Common.Logging.Log4Net208.pdb
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\Common.Logging.Log4Net208.xml
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\Elasticsearch.Net.xml
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\log4net.xml
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\MongoDB.Bson.xml
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\Nest.xml
D:\smallproject\6.CsvCount_ES\CsvCount_ES\bin\Debug\Newtonsoft.Json.xml
D:\smallproject\6.CsvCount_ES\CsvCount_ES\obj\Debug\CsvCount_ES.Form1.resources
D:\smallproject\6.CsvCount_ES\CsvCount_ES\obj\Debug\CsvCount_ES.Properties.Resources.resources
D:\smallproject\6.CsvCount_ES\CsvCount_ES\obj\Debug\CsvCount_ES.csproj.GenerateResource.Cache
D:\smallproject\6.CsvCount_ES\CsvCount_ES\obj\Debug\CsvCount_ES.exe
D:\smallproject\6.CsvCount_ES\CsvCount_ES\obj\Debug\CsvCount_ES.pdb
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment