Skip to content

Commit

Permalink
Castle.Services.Logging.DiagnosticsLogger for Windows EventLog
Browse files Browse the repository at this point in the history
  • Loading branch information
snakefoot committed Jan 29, 2025
1 parent 28b8715 commit 97365fc
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 13 deletions.
11 changes: 9 additions & 2 deletions Castle.Core.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30011.22
# Visual Studio Version 17
VisualStudioVersion = 17.11.35312.102
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Castle Build", "Castle Build", "{1B999D24-B7AB-4997-96E7-08FA05325694}"
ProjectSection(SolutionItems) = preProject
Expand Down Expand Up @@ -37,6 +37,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "GitHub Actions", "GitHub Ac
.github\workflows\build.yml = .github\workflows\build.yml
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Castle.Services.Logging.DiagnosticsLogger", "src\Castle.Services.Logging.DiagnosticsLogger\Castle.Services.Logging.DiagnosticsLogger.csproj", "{B200E568-EBF4-42DB-86D0-94C1BC1055E1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -67,6 +69,10 @@ Global
{14D86762-CF9B-4560-80C9-10C16DBE246C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{14D86762-CF9B-4560-80C9-10C16DBE246C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{14D86762-CF9B-4560-80C9-10C16DBE246C}.Release|Any CPU.Build.0 = Release|Any CPU
{B200E568-EBF4-42DB-86D0-94C1BC1055E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B200E568-EBF4-42DB-86D0-94C1BC1055E1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B200E568-EBF4-42DB-86D0-94C1BC1055E1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B200E568-EBF4-42DB-86D0-94C1BC1055E1}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -76,6 +82,7 @@ Global
{344D907D-6641-4A61-94C2-4980B5804FE2} = {A598EE9B-41CE-4BE8-BF93-2C91F919F97E}
{91B2A82F-63F6-46B1-8EDC-5D029BCF6A2B} = {A598EE9B-41CE-4BE8-BF93-2C91F919F97E}
{149DB291-CBD6-4F82-A6A6-758E328DB946} = {1B999D24-B7AB-4997-96E7-08FA05325694}
{B200E568-EBF4-42DB-86D0-94C1BC1055E1} = {A598EE9B-41CE-4BE8-BF93-2C91F919F97E}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {682D4399-4863-4813-B495-5FEDD22496ED}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\buildscripts\common.props"></Import>

Expand Down Expand Up @@ -29,6 +29,7 @@
<PackageReference Include="NUnitLite" Version="3.13.3" />
<ProjectReference Include="..\Castle.Core\Castle.Core.csproj" />
<ProjectReference Include="..\Castle.Core.Tests\Castle.Core.Tests.csproj" />
<ProjectReference Include="..\Castle.Services.Logging.DiagnosticsLogger\Castle.Services.Logging.DiagnosticsLogger.csproj" />
<ProjectReference Include="..\Castle.Services.Logging.log4netIntegration\Castle.Services.Logging.log4netIntegration.csproj" />
<ProjectReference Include="..\Castle.Services.Logging.NLogIntegration\Castle.Services.Logging.NLogIntegration.csproj" />
<ProjectReference Include="..\Castle.Services.Logging.SerilogIntegration\Castle.Services.Logging.SerilogIntegration.csproj" />
Expand Down
3 changes: 3 additions & 0 deletions src/Castle.Core.Tests/Castle.Core.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,18 @@
<PackageReference Include="Serilog" Version="2.0.0" />
<PackageReference Include="Serilog.Sinks.TextWriter" Version="2.0.0" />
<ProjectReference Include="..\Castle.Core\Castle.Core.csproj" />
<ProjectReference Include="..\Castle.Services.Logging.DiagnosticsLogger\Castle.Services.Logging.DiagnosticsLogger.csproj" />
<ProjectReference Include="..\Castle.Services.Logging.log4netIntegration\Castle.Services.Logging.log4netIntegration.csproj" />
<ProjectReference Include="..\Castle.Services.Logging.NLogIntegration\Castle.Services.Logging.NLogIntegration.csproj" />
<ProjectReference Include="..\Castle.Services.Logging.SerilogIntegration\Castle.Services.Logging.SerilogIntegration.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp2.1'OR'$(TargetFramework)'=='netcoreapp3.1'">
<PackageReference Include="System.Security.Permissions" Version="4.7.0" />
<PackageReference Include="System.Diagnostics.EventLog" Version="4.7.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net6.0'">
<PackageReference Include="System.Security.Permissions" Version="6.0.0" />
<PackageReference Include="System.Diagnostics.EventLog" Version="6.0.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'">
<PackageReference Include="System.Net.NameResolution" Version="4.3.0" />
Expand Down
1 change: 1 addition & 0 deletions src/Castle.Core.Tests/PublicApiTestCase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public class PublicApiTestCase
"Castle.Services.Logging.log4netIntegration",
"Castle.Services.Logging.NLogIntegration",
"Castle.Services.Logging.SerilogIntegration",
"Castle.Services.Logging.DiagnosticsLogger",
};

[Test]
Expand Down
8 changes: 0 additions & 8 deletions src/Castle.Core/Castle.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@
<PackageReference Include="System.Reflection.Emit" Version="4.7.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='netstandard2.0' OR '$(TargetFramework)'=='netstandard2.1'">
<PackageReference Include="System.Diagnostics.EventLog" Version="4.7.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='net6.0'">
<PackageReference Include="System.Diagnostics.EventLog" Version="6.0.0" />
</ItemGroup>

<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\buildscripts\common.props"></Import>

<PropertyGroup>
<TargetFrameworks>net462;netstandard2.0;netstandard2.1;net6.0</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
<PackageId>Castle.Core-DiagnosticsLogger</PackageId>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageOutputPath>../../build/</PackageOutputPath>
<AssemblyName>Castle.Services.Logging.DiagnosticsLogger</AssemblyName>
<RootNamespace>Castle.Services.Logging.DiagnosticsLogger</RootNamespace>
<AssemblyTitle>Castle.Services.Logging.DiagnosticsLogger</AssemblyTitle>
<Description>Castle Services DiagnosticsLogger for Windows EventLog</Description>
<AssemblyOriginatorKeyFile>..\..\buildscripts\CastleKey.snk</AssemblyOriginatorKeyFile>
<SignAssembly>True</SignAssembly>
<PublicSign Condition="'$(OS)'=='Unix'">true</PublicSign>
<PackageTags>castle logging eventlog</PackageTags>
</PropertyGroup>

<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='netstandard2.0' OR '$(TargetFramework)'=='netstandard2.1'">
<PackageReference Include="System.Diagnostics.EventLog" Version="4.7.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='net6.0'">
<PackageReference Include="System.Diagnostics.EventLog" Version="6.0.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Castle.Core\Castle.Core.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2004-2022 Castle Project - http://www.castleproject.org/
// Copyright 2004-2022 Castle Project - http://www.castleproject.org/
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2004-2022 Castle Project - http://www.castleproject.org/
// Copyright 2004-2022 Castle Project - http://www.castleproject.org/
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down

0 comments on commit 97365fc

Please sign in to comment.