Interface ITraceWriter
Represents a trace writer.
Namespace: Bayat.Json.Serialization
Assembly: Bayat.Json.Runtime.dll
Syntax
public interface 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
TraceLevel LevelFilter { get; }
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
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. |