Upgrade logging and sharp7

moved statistic logging to trace
This commit is contained in:
Federico Barresi
2020-01-21 10:20:07 +01:00
parent d22b07c2f5
commit 1ddd180545
2 changed files with 3 additions and 4 deletions

View File

@@ -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>

View File

@@ -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();
} }