mirror of
https://github.com/OpenLogics/MewtocolNet.git
synced 2025-12-06 03:01:24 +00:00
Added mewtocol logger to unit test output
This commit is contained in:
@@ -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")]
|
||||||
|
|||||||
Reference in New Issue
Block a user