-
Notifications
You must be signed in to change notification settings - Fork 483
Castle.Services.Logging.EventLogIntegration for Windows EventLog #694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| [assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/castleproject/Core")] | ||
| [assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.6.2", FrameworkDisplayName=".NET Framework 4.6.2")] | ||
| namespace Castle.Services.Logging.EventLogIntegration | ||
| { | ||
| [System.Serializable] | ||
| public class DiagnosticsLogger : Castle.Core.Logging.LevelFilteredLogger, System.IDisposable | ||
| { | ||
| public DiagnosticsLogger(string logName) { } | ||
| public DiagnosticsLogger(string logName, string source) { } | ||
| public DiagnosticsLogger(string logName, string machineName, string source) { } | ||
| public override Castle.Core.Logging.ILogger CreateChildLogger(string loggerName) { } | ||
| public void Dispose() { } | ||
| protected virtual void Dispose(bool disposing) { } | ||
| protected override void Finalize() { } | ||
| protected override void Log(Castle.Core.Logging.LoggerLevel loggerLevel, string loggerName, string message, System.Exception exception) { } | ||
| } | ||
| [System.Serializable] | ||
| public class DiagnosticsLoggerFactory : Castle.Core.Logging.AbstractLoggerFactory | ||
| { | ||
| public DiagnosticsLoggerFactory() { } | ||
| public override Castle.Core.Logging.ILogger Create(string name) { } | ||
| public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| [assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/castleproject/Core")] | ||
| [assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName=".NET 8.0")] | ||
| namespace Castle.Services.Logging.EventLogIntegration | ||
| { | ||
| [System.Runtime.Versioning.SupportedOSPlatform("windows")] | ||
| public class DiagnosticsLogger : Castle.Core.Logging.LevelFilteredLogger, System.IDisposable | ||
| { | ||
| public DiagnosticsLogger(string logName) { } | ||
| public DiagnosticsLogger(string logName, string source) { } | ||
| public DiagnosticsLogger(string logName, string machineName, string source) { } | ||
| public override Castle.Core.Logging.ILogger CreateChildLogger(string loggerName) { } | ||
| public void Dispose() { } | ||
| protected virtual void Dispose(bool disposing) { } | ||
| protected override void Finalize() { } | ||
| protected override void Log(Castle.Core.Logging.LoggerLevel loggerLevel, string loggerName, string message, System.Exception exception) { } | ||
| } | ||
| [System.Runtime.Versioning.SupportedOSPlatform("windows")] | ||
| public class DiagnosticsLoggerFactory : Castle.Core.Logging.AbstractLoggerFactory | ||
| { | ||
| public DiagnosticsLoggerFactory() { } | ||
| public override Castle.Core.Logging.ILogger Create(string name) { } | ||
| public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } | ||
| } | ||
| } |
22 changes: 22 additions & 0 deletions
22
ref/Castle.Services.Logging.EventLogIntegration-netstandard2.0.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| [assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/castleproject/Core")] | ||
| [assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName=".NET Standard 2.0")] | ||
| namespace Castle.Services.Logging.EventLogIntegration | ||
| { | ||
| public class DiagnosticsLogger : Castle.Core.Logging.LevelFilteredLogger, System.IDisposable | ||
| { | ||
| public DiagnosticsLogger(string logName) { } | ||
| public DiagnosticsLogger(string logName, string source) { } | ||
| public DiagnosticsLogger(string logName, string machineName, string source) { } | ||
| public override Castle.Core.Logging.ILogger CreateChildLogger(string loggerName) { } | ||
| public void Dispose() { } | ||
| protected virtual void Dispose(bool disposing) { } | ||
| protected override void Finalize() { } | ||
| protected override void Log(Castle.Core.Logging.LoggerLevel loggerLevel, string loggerName, string message, System.Exception exception) { } | ||
| } | ||
| public class DiagnosticsLoggerFactory : Castle.Core.Logging.AbstractLoggerFactory | ||
| { | ||
| public DiagnosticsLoggerFactory() { } | ||
| public override Castle.Core.Logging.ILogger Create(string name) { } | ||
| public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...e.Services.Logging.EventLogIntegration/Castle.Services.Logging.EventLogIntegration.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
|
|
||
| <Import Project="..\..\buildscripts\common.props"></Import> | ||
|
|
||
| <PropertyGroup> | ||
| <TargetFrameworks>net8.0;net462;netstandard2.0</TargetFrameworks> | ||
| </PropertyGroup> | ||
|
|
||
| <PropertyGroup> | ||
| <PackageId>Castle.Core-DiagnosticsLogger</PackageId> | ||
| <GeneratePackageOnBuild>True</GeneratePackageOnBuild> | ||
| <PackageOutputPath>../../build/</PackageOutputPath> | ||
| <AssemblyName>Castle.Services.Logging.EventLogIntegration</AssemblyName> | ||
| <RootNamespace>Castle.Services.Logging.EventLogIntegration</RootNamespace> | ||
| <AssemblyTitle>Castle Windows EventLog integration</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 Condition=" '$(TargetFrameworkIdentifier)' != '.NETFramework' "> | ||
| <PackageReference Include="System.Diagnostics.EventLog" Version="8.0.2" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <ProjectReference Include="..\Castle.Core\Castle.Core.csproj" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.