From 1ddd1805451fe6fd9b5157fe20810ed2e7cdc8d0 Mon Sep 17 00:00:00 2001 From: Federico Barresi Date: Tue, 21 Jan 2020 10:20:07 +0100 Subject: [PATCH] Upgrade logging and sharp7 moved statistic logging to trace --- Sharp7.Rx/Sharp7.Rx.csproj | 4 ++-- Sharp7.Rx/Sharp7Plc.cs | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Sharp7.Rx/Sharp7.Rx.csproj b/Sharp7.Rx/Sharp7.Rx.csproj index 7a71dbe..63d2d27 100644 --- a/Sharp7.Rx/Sharp7.Rx.csproj +++ b/Sharp7.Rx/Sharp7.Rx.csproj @@ -15,8 +15,8 @@ - - + + diff --git a/Sharp7.Rx/Sharp7Plc.cs b/Sharp7.Rx/Sharp7Plc.cs index 4f46aa4..3273a40 100644 --- a/Sharp7.Rx/Sharp7Plc.cs +++ b/Sharp7.Rx/Sharp7Plc.cs @@ -14,7 +14,6 @@ using Sharp7.Rx.Basics; using Sharp7.Rx.Enums; using Sharp7.Rx.Extensions; using Sharp7.Rx.Interfaces; -using Sharp7.Rx.Resources; using Sharp7.Rx.Settings; namespace Sharp7.Rx @@ -431,7 +430,7 @@ namespace Sharp7.Rx var min = performanceCoutner.Min(); 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); performanceCoutner.Clear(); }