From 6ca8e9de96341da6f40022b57f239bf0d83913d8 Mon Sep 17 00:00:00 2001 From: Felix Weiss Date: Tue, 13 Jun 2023 23:11:56 +0200 Subject: [PATCH] Added mewtocol logger to unit test output --- MewtocolTests/TestClient.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/MewtocolTests/TestClient.cs b/MewtocolTests/TestClient.cs index 6f2a699..3abdde4 100644 --- a/MewtocolTests/TestClient.cs +++ b/MewtocolTests/TestClient.cs @@ -1,4 +1,5 @@ using MewtocolNet; +using MewtocolNet.Logging; using System; using System.Collections.Generic; using System.Linq; @@ -37,7 +38,16 @@ namespace MewtocolTests { }; public TestClient (ITestOutputHelper output) { + this.output = output; + + Logger.LogLevel = LogLevel.Verbose; + Logger.OnNewLogMessage((d,m) => { + + output.WriteLine($"Mewtocol Logger: {d} {m}"); + + }); + } [Fact(DisplayName = "Connection cycle client to PLC")]