Repository navigation
Add Microsoft.Extensions.Logging.EventLog package README - #136447
Merged
Merged
Conversation
|
Azure Pipelines: Successfully started running 4 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @dotnet/area-extensions-logging |
Contributor
Author
|
@dotnet-policy-service agree |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The documentation overstates failure-handling guarantees: logging is disabled only for SecurityException, fallback diagnostics are best-effort, and other source-creation exceptions propagate.
1 open issue
What changed in this PR
Adds a NuGet package README for Microsoft.Extensions.Logging.EventLog, contributing to the shipping-library documentation effort in #99358.
Changes:
- Documents Windows Event Log logging, provider defaults, usage examples, configuration, and related resources.
- Removes the project’s README opt-out so the package uses the default README inclusion.
| File | Description |
|---|---|
src/libraries/Microsoft.Extensions.Logging.EventLog/src/PACKAGE.md |
Adds package documentation and usage examples. |
src/libraries/Microsoft.Extensions.Logging.EventLog/src/Microsoft.Extensions.Logging.EventLog.csproj |
Enables default package README inclusion. |
Review effort: Balanced
Member
|
@fizzexual Thanks for your PR! Can you address the comment above? |
rosebyte
approved these changes
Nov 3, 2026
rosebyte
left a comment
Member
There was a problem hiding this comment.
LGTM, thank you for the contribution!
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Contributes to #99358.
Adds the package README for
Microsoft.Extensions.Logging.EventLogand removes theEnableDefaultPackageReadmeFile=falseoverride from the project file.The example was run on Windows and wrote the expected Information, Warning and Error events (event ID 1000,
.NET Runtimesource) to the Application log. Theappsettings.jsonexample bindsEventLogSettingsfrom theLogging:EventLogsection, which is supported starting with .NET 11 (#124176); I checked it against 11.0.0-rc.3.