-Documentation
This commit is contained in:
@@ -4,7 +4,8 @@
|
|||||||
<introduction>
|
<introduction>
|
||||||
<para>The Json.NET serializer supports logging and debugging using the
|
<para>The Json.NET serializer supports logging and debugging using the
|
||||||
<codeEntityReference>T:Newtonsoft.Json.Serialization.ITraceWriter</codeEntityReference> interface.
|
<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>
|
By assigning a trace writer you can capture serialization messages and errors, and debug what happens inside the
|
||||||
|
Json.NET serializer when serializing and deserializing JSON.</para>
|
||||||
</introduction>
|
</introduction>
|
||||||
<section>
|
<section>
|
||||||
<title>ITraceWriter</title>
|
<title>ITraceWriter</title>
|
||||||
@@ -22,7 +23,7 @@
|
|||||||
<section>
|
<section>
|
||||||
<title>Custom ITraceWriter</title>
|
<title>Custom ITraceWriter</title>
|
||||||
<content>
|
<content>
|
||||||
<para>To write messages using your existing logging framework implement a custom version of ITraceWriter.</para>
|
<para>To write messages using your existing logging framework just implement a custom version of ITraceWriter.</para>
|
||||||
|
|
||||||
<code lang="cs" source="..\Src\Newtonsoft.Json.Tests\Documentation\TraceWriterTests.cs" region="CustomTraceWriterExample" title="Custom NLog TraceWriter" />
|
<code lang="cs" source="..\Src\Newtonsoft.Json.Tests\Documentation\TraceWriterTests.cs" region="CustomTraceWriterExample" title="Custom NLog TraceWriter" />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user