Skip to content

Serializer.LogTraceWriter Class

A simple log writer that helps debug the JSON serialization.

C#
public class Serializer.LogTraceWriter : ITraceWriter

Inheritance object

Implements Newtonsoft.Json.Serialization.ITraceWriter

C#
public LogTraceWriter()

THe string containing the log.

C#
public readonly StringBuilder Log

THe level filter for the log.

C#
public TraceLevel LevelFilter { get; }

Captures a JSON log event.

C#
public void Trace(TraceLevel level, string message, Exception? ex)

level TraceLevel
The log level.

message string
The message.

ex Exception
The exception associated with the log event.