Skip to content

Commit

Permalink
Add TraceSource to test logger
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Jun 10, 2019
1 parent e3b2496 commit 3a47e0d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/StreamJsonRpc.Tests/JsonRpcClient20InteropTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using Newtonsoft.Json;
Expand All @@ -22,7 +23,14 @@ public class JsonRpcClient20InteropTests : InteropTestBase
public JsonRpcClient20InteropTests(ITestOutputHelper logger)
: base(logger, serverTest: false)
{
this.clientRpc = new JsonRpc(this.messageHandler);
this.clientRpc = new JsonRpc(this.messageHandler)
{
TraceSource =
{
Switch = { Level = SourceLevels.Verbose },
Listeners = { new XunitTraceListener(logger) },
},
};
this.clientRpc.StartListening();
}

Expand Down

0 comments on commit 3a47e0d

Please sign in to comment.