Show / Hide Table of Contents

Class Serializer.LogTraceWriter

A simple log writer that helps debug the JSON serialization.

Inheritance
object
Serializer.LogTraceWriter
Implements
ITraceWriter
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX