-
Notifications
You must be signed in to change notification settings - Fork 484
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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) { } | ||
| } | ||
| } |
| 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) { } | ||
| } | ||
| } |
| 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) { } | ||
| } | ||
| } |
| 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> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @snakefoot, I am a little late, and we do not need to revisit this for my sake, but I just read a bit about OS-specific TFMs and was wondering whether we should have used |
||
| </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> | ||
Uh oh!
There was an error while loading. Please reload this page.