Class DiagnosticsTraceWriter
Represents a trace writer that writes to the application's System.Diagnostics.TraceListener instances.
Inheritance
System.Object
DiagnosticsTraceWriter
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Bayat.Json.Serialization
Assembly: Bayat.Json.Runtime.dll
Syntax
public class DiagnosticsTraceWriter : ITraceWriter
Properties
| Improve this Doc View SourceLevelFilter
Gets the System.Diagnostics.TraceLevel that will be used to filter the trace messages passed to the writer. For example a filter level of
Info
will exclude Verbose
messages and include Info
,
Warning
and Error
messages.
Declaration
public TraceLevel LevelFilter { get; set; }
Property Value
Type | Description |
---|---|
System.Diagnostics.TraceLevel | The System.Diagnostics.TraceLevel that will be used to filter the trace messages passed to the writer. |
Methods
| Improve this Doc View SourceTrace(TraceLevel, String, Exception)
Writes the specified trace level, message and optional exception.
Declaration
public void Trace(TraceLevel level, string message, Exception ex)
Parameters
Type | Name | Description |
---|---|---|
System.Diagnostics.TraceLevel | level | The System.Diagnostics.TraceLevel at which to write this trace. |
System.String | message | The trace message. |
System.Exception | ex | The trace exception. This parameter is optional. |