Class Serializer.LogTraceWriter
A simple log writer that helps debug the JSON serialization.
Implements
ITraceWriter
Inherited Members
Namespace: SadConsole
Assembly: SadConsole.dll
Syntax
public class Serializer.LogTraceWriter : ITraceWriter
Constructors
LogTraceWriter()
Declaration
public LogTraceWriter()
Fields
Log
THe string containing the log.
Declaration
public readonly StringBuilder Log
Field Value
| Type | Description |
|---|---|
| StringBuilder |
Properties
LevelFilter
THe level filter for the log.
Declaration
public TraceLevel LevelFilter { get; }
Property Value
| Type | Description |
|---|---|
| TraceLevel |
Methods
Trace(TraceLevel, string, Exception?)
Captures a JSON log event.
Declaration
public void Trace(TraceLevel level, string message, Exception? ex)
Parameters
| Type | Name | Description |
|---|---|---|
| TraceLevel | level | The log level. |
| string | message | The message. |
| Exception | ex | The exception associated with the log event. |
Implements
Newtonsoft.Json.Serialization.ITraceWriter