chore: 初始化合力驱动桥MES采集程序
This commit is contained in:
28
Common/00-1Json8.3/Json8.3/Serialization/ITraceWriter.cs
Normal file
28
Common/00-1Json8.3/Json8.3/Serialization/ITraceWriter.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Newtonsoft.Json.Serialization
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a trace writer.
|
||||
/// </summary>
|
||||
public interface ITraceWriter
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the <see cref="TraceLevel"/> that will be used to filter the trace messages passed to the writer.
|
||||
/// For example a filter level of <code>Info</code> will exclude <code>Verbose</code> messages and include <code>Info</code>,
|
||||
/// <code>Warning</code> and <code>Error</code> messages.
|
||||
/// </summary>
|
||||
/// <value>The <see cref="TraceLevel"/> that will be used to filter the trace messages passed to the writer.</value>
|
||||
TraceLevel LevelFilter { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Writes the specified trace level, message and optional exception.
|
||||
/// </summary>
|
||||
/// <param name="level">The <see cref="TraceLevel"/> at which to write this trace.</param>
|
||||
/// <param name="message">The trace message.</param>
|
||||
/// <param name="ex">The trace exception. This parameter is optional.</param>
|
||||
void Trace(TraceLevel level, string message, Exception ex);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user