Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Newtonsoft.​Json.​Serialization.​MemoryTraceWriter
Assembly: Newtonsoft.Json
Inheritance: object → MemoryTraceWriter
Implemented Interfaces
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.
Properties
public
TraceLevel
LevelFilter
Gets the <see cref="T:Newtonsoft.Json.TraceLevel" /> that will be used to filter the trace messages passed to the writer.
For example a filter level of <see cref="F:Newtonsoft.Json.TraceLevel.Info" /> will exclude <see cref="F:Newtonsoft.Json.TraceLevel.Verbose" /> messages and include <see cref="F:Newtonsoft.Json.TraceLevel.Info" /> ,
<see cref="F:Newtonsoft.Json.TraceLevel.Warning" /> and <see cref="F:Newtonsoft.Json.TraceLevel.Error" /> messages.
Methods
public
void
Trace​(TraceLevel level,
string message,
System.​Exception ex)
Writes the specified trace level, message and optional exception.
level
The <see cref="T:Newtonsoft.Json.TraceLevel" /> at which to write this trace.
message
The trace message.
ex
The trace exception. This parameter is optional.
public
System.​Collections.​Generic.​IEnumerable<​string>
GetTraceMessages​()
Returns an enumeration of the most recent trace messages.
Returns An enumeration of the most recent trace messages.
public
string
ToString​()
Returns a <see cref="T:System.String" /> of the most recent trace messages.
Returns A <see cref="T:System.String" /> of the most recent trace messages.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object