Added mewtocol logger to unit test output

This commit is contained in:
Felix Weiss
2023-06-13 23:11:56 +02:00
parent 53a0856634
commit 6ca8e9de96

View File

@@ -1,4 +1,5 @@
using MewtocolNet; using MewtocolNet;
using MewtocolNet.Logging;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
@@ -37,7 +38,16 @@ namespace MewtocolTests {
}; };
public TestClient (ITestOutputHelper output) { public TestClient (ITestOutputHelper output) {
this.output = 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")] [Fact(DisplayName = "Connection cycle client to PLC")]