Click or drag to resize
Json.NET

MemoryTraceWriter Class

 
Represents a trace writer that writes to memory. When the trace message limit is reached then old trace messages will be removed as new messages are added.
Inheritance Hierarchy
SystemObject
  Newtonsoft.Json.SerializationMemoryTraceWriter

Namespace:  Newtonsoft.Json.Serialization
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public class MemoryTraceWriter : ITraceWriter

The MemoryTraceWriter type exposes the following members.

Constructors
  NameDescription
Public methodMemoryTraceWriter
Initializes a new instance of the MemoryTraceWriter class.
Top
Properties
  NameDescription
Public propertyLevelFilter
Gets the 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.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetTraceMessages
Returns an enumeration of the most recent trace messages.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String of the most recent trace messages.
(Overrides ObjectToString.)
Public methodTrace
Writes the specified trace level, message and optional exception.
Top
See Also