Skip to content

Commit

Permalink
Make camera plugins use the shared log4net.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanCharmant committed Jul 27, 2024
1 parent dce2f94 commit 3102138
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions Kinovea.Camera.Basler/Kinovea.Camera.Basler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
<ItemGroup>
<Reference Include="log4net">
<HintPath>..\packages\log4net.2.0.14\lib\net45\log4net.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="PylonC.NET, Version=4.2.0.0, Culture=neutral, PublicKeyToken=a77e8471c5919d5a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down
1 change: 1 addition & 0 deletions Kinovea.Camera.Baumer/Kinovea.Camera.Baumer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
</Reference>
<Reference Include="log4net">
<HintPath>..\packages\log4net.2.0.14\lib\net45\log4net.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
1 change: 1 addition & 0 deletions Kinovea.Camera.Daheng/Kinovea.Camera.Daheng.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
</Reference>
<Reference Include="log4net">
<HintPath>..\packages\log4net.2.0.14\lib\net45\log4net.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
1 change: 1 addition & 0 deletions Kinovea.Camera.DirectShow/Kinovea.Camera.DirectShow.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
</Reference>
<Reference Include="log4net">
<HintPath>..\packages\log4net.2.0.14\lib\net45\log4net.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
<Reference Include="log4net, Version=2.0.14.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\log4net.2.0.14\lib\net45\log4net.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Drawing" />
Expand Down
7 changes: 4 additions & 3 deletions Kinovea.Camera.GenICam/Configuration/CameraPropertyManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ private static CameraProperty ReadIntegerProperty(Device device, string symbol,
p.Maximum = max.ToString(CultureInfo.InvariantCulture);
p.Step = step.ToString(CultureInfo.InvariantCulture);
p.CurrentValue = currentValue.ToString(CultureInfo.InvariantCulture);

log.DebugFormat("Read GenICam property {0}", p);
log.DebugFormat("Read GenICam property: \"{0}\"", symbol);

return p;
}
Expand Down Expand Up @@ -425,7 +425,7 @@ private static CameraProperty ReadFloatProperty(Device device, string symbol)
p.Representation = ConvertRepresentation(repr);
p.CurrentValue = currentValue.ToString(CultureInfo.InvariantCulture);

log.DebugFormat("Read GenICam property {0}", p);
log.DebugFormat("Read GenICam property: \"{0}\"", symbol);

return p;
}
Expand Down Expand Up @@ -605,6 +605,7 @@ public static bool ExecuteCommand(Device device, string command)
try
{
node.Execute();
log.DebugFormat("Executed command: \"{0}\"", command);
result = true;
}
catch (BGAPI2.Exceptions.ErrorException e)
Expand Down
1 change: 1 addition & 0 deletions Kinovea.Camera.GenICam/Kinovea.Camera.GenICam.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
<Reference Include="log4net, Version=2.0.14.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\log4net.2.0.14\lib\net45\log4net.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
1 change: 1 addition & 0 deletions Kinovea.Camera.HTTP/Kinovea.Camera.HTTP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
</Reference>
<Reference Include="log4net">
<HintPath>..\packages\log4net.2.0.14\lib\net45\log4net.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Drawing" />
Expand Down
1 change: 1 addition & 0 deletions Kinovea.Camera.IDS/Kinovea.Camera.IDS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
<ItemGroup>
<Reference Include="log4net">
<HintPath>..\packages\log4net.2.0.14\lib\net45\log4net.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Drawing" />
Expand Down

0 comments on commit 3102138

Please sign in to comment.