Skip to content

Add Microsoft.Extensions.Logging.EventLog package README - #136447

Merged
svick merged 2 commits into
dotnet:mainfrom
fizzexual:eventlog-package-readme
Nov 3, 2026
Merged

svick merged 2 commits into
dotnet:mainfrom
fizzexual:eventlog-package-readme

Conversation

@fizzexual

Copy link
Copy Markdown
Contributor

Contributes to #99358.

Adds the package README for Microsoft.Extensions.Logging.EventLog and removes the EnableDefaultPackageReadmeFile=false override from the project file.

The example was run on Windows and wrote the expected Information, Warning and Error events (event ID 1000, .NET Runtime source) to the Application log. The appsettings.json example binds EventLogSettings from the Logging:EventLog section, which is supported starting with .NET 11 (#124176); I checked it against 11.0.0-rc.3.

@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Oct 25, 2026
@azure-pipelines

Copy link
Copy Markdown
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.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-extensions-logging
See info in area-owners.md if you want to be subscribed.

@fizzexual

Copy link
Copy Markdown
Contributor Author

@dotnet-policy-service agree

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

@svick

svick commented Nov 2, 2026

Copy link
Copy Markdown
Member

@fizzexual Thanks for your PR!

Can you address the comment above?

@rosebyte rosebyte left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for the contribution!

@svick
svick merged commit d6e96f6 into dotnet:main Nov 3, 2026
89 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Extensions-Logging community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants