Skip to content

Commit 6ca8e9d

Browse files
committed
Added mewtocol logger to unit test output
1 parent 53a0856 commit 6ca8e9d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

MewtocolTests/TestClient.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using MewtocolNet;
2+
using MewtocolNet.Logging;
23
using System;
34
using System.Collections.Generic;
45
using System.Linq;
@@ -37,7 +38,16 @@ public class TestClient {
3738
};
3839

3940
public TestClient (ITestOutputHelper output) {
41+
4042
this.output = output;
43+
44+
Logger.LogLevel = LogLevel.Verbose;
45+
Logger.OnNewLogMessage((d,m) => {
46+
47+
output.WriteLine($"Mewtocol Logger: {d} {m}");
48+
49+
});
50+
4151
}
4252

4353
[Fact(DisplayName = "Connection cycle client to PLC")]

0 commit comments

Comments
 (0)