-Documentation
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
<topic id="SerializationTracing" revisionNumber="1">
|
||||
<developerConceptualDocument xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<introduction>
|
||||
<para>The Json.NET serializer supports logging using the <codeEntityReference>T:Newtonsoft.Json.Serialization.ITraceWriter</codeEntityReference>
|
||||
interface. By assigning a trace writer you can debug what is happening inside the Json.NET serializer when
|
||||
serializing and deserializing JSON.</para>
|
||||
<para>The Json.NET serializer supports logging and debugging using the
|
||||
<codeEntityReference>T:Newtonsoft.Json.Serialization.ITraceWriter</codeEntityReference> interface.
|
||||
By assigning a trace writer you can debug what happens inside the Json.NET serializer when serializing and deserializing JSON.</para>
|
||||
</introduction>
|
||||
<section>
|
||||
<title>ITraceWriter</title>
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
<code lang="cs" source="..\Src\Newtonsoft.Json.Tests\Documentation\TraceWriterTests.cs" region="MemoryTraceWriterExample" title="Debugging serialization using MemoryTraceWriter" />
|
||||
|
||||
<para>Json.NET has two implementations of ITraceWriter: <codeEntityReference>P:Newtonsoft.Json.Serialization.MemoryTraceWriter</codeEntityReference>
|
||||
<para>Json.NET has two implementations of ITraceWriter: <codeEntityReference>T:Newtonsoft.Json.Serialization.MemoryTraceWriter</codeEntityReference>
|
||||
which keeps messages in memory for simple debugging like the example
|
||||
above, and <codeEntityReference>T:Newtonsoft.Json.Serialization.DiagnosticsTraceWriter</codeEntityReference> which writes messages to any
|
||||
System.Diagnostics.TraceListeners your application is using.</para>
|
||||
|
||||
Reference in New Issue
Block a user