mirror of
https://github.com/evopro-ag/Sharp7Reactive.git
synced 2025-12-16 11:42:52 +00:00
Upgrade logging and sharp7
moved statistic logging to trace
This commit is contained in:
@@ -15,8 +15,8 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.1.1" />
|
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.0.0" />
|
||||||
<PackageReference Include="Sharp7" Version="1.0.18" />
|
<PackageReference Include="Sharp7" Version="1.0.50" />
|
||||||
<PackageReference Include="System.Interactive" Version="4.0.0" />
|
<PackageReference Include="System.Interactive" Version="4.0.0" />
|
||||||
<PackageReference Include="System.Reactive" Version="4.1.0" />
|
<PackageReference Include="System.Reactive" Version="4.1.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ using Sharp7.Rx.Basics;
|
|||||||
using Sharp7.Rx.Enums;
|
using Sharp7.Rx.Enums;
|
||||||
using Sharp7.Rx.Extensions;
|
using Sharp7.Rx.Extensions;
|
||||||
using Sharp7.Rx.Interfaces;
|
using Sharp7.Rx.Interfaces;
|
||||||
using Sharp7.Rx.Resources;
|
|
||||||
using Sharp7.Rx.Settings;
|
using Sharp7.Rx.Settings;
|
||||||
|
|
||||||
namespace Sharp7.Rx
|
namespace Sharp7.Rx
|
||||||
@@ -431,7 +430,7 @@ namespace Sharp7.Rx
|
|||||||
var min = performanceCoutner.Min();
|
var min = performanceCoutner.Min();
|
||||||
var max = performanceCoutner.Max();
|
var max = performanceCoutner.Max();
|
||||||
|
|
||||||
Logger?.LogInformation("Performance statistic during {0} elements of plc notification. Min: {1}, Max: {2}, Average: {3}, Plc: '{4}', Number of variables: {5}, Batch size: {6}", performanceCoutner.Capacity, min, max, average, plcConnectionSettings.IpAddress, multiVariableSubscriptions.ExistingKeys.Count(),
|
Logger?.LogTrace("Performance statistic during {0} elements of plc notification. Min: {1}, Max: {2}, Average: {3}, Plc: '{4}', Number of variables: {5}, Batch size: {6}", performanceCoutner.Capacity, min, max, average, plcConnectionSettings.IpAddress, multiVariableSubscriptions.ExistingKeys.Count(),
|
||||||
MultiVarRequestMaxItems);
|
MultiVarRequestMaxItems);
|
||||||
performanceCoutner.Clear();
|
performanceCoutner.Clear();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user