Skip to content

feat(Logging): support rule fitler#38

Merged
ArgoZhang merged 7 commits into
mainfrom
feat-logger
May 19, 2026
Merged

feat(Logging): support rule fitler#38
ArgoZhang merged 7 commits into
mainfrom
feat-logger

Conversation

@ArgoZhang

Copy link
Copy Markdown
Member

Link issues

fixes #37

Summary By Copilot

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • Merge the latest code from the main branch

Copilot AI review requested due to automatic review settings May 19, 2026 04:28
@ArgoZhang ArgoZhang merged commit 26d38df into main May 19, 2026
2 checks passed
@ArgoZhang ArgoZhang deleted the feat-logger branch May 19, 2026 04:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds rule-based filtering support to Longbow.Logging’s FileLoggerProvider by integrating LoggerFilterOptions rules into the provider’s filtering pipeline, alongside a few internal refactors and solution maintenance updates.

Changes:

  • Integrate LoggerFilterOptions rule evaluation into FileLoggerProvider and reload filtering behavior on options changes.
  • Refactor some internal logging components (dispose pattern cleanup, primary-constructor usage) and rename private fields for consistency.
  • Bump Longbow.Logging package version and add the benchmarks project to the solution.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Longbow.Logging/Longbow.Logging.csproj Bumps package version to 10.0.1.
src/Longbow.Logging/FileLogger/FileLoggerWriter.cs Refactors internal flush/dispose state handling and field naming.
src/Longbow.Logging/FileLogger/FileLoggerProvider.cs Adds rule-based filtering via LoggerFilterOptions + reload token; updates constructor signature.
src/Longbow.Logging/FileLogger/FileLogger.cs Simplifies callback storage by using primary-constructor parameter directly.
src/Longbow.Logging/DBLogger/DBLoggerProvider.cs Simplifies implementation by using primary-constructor parameters directly.
src/Longbow.Logging/DBLogger/DBLogger.cs Simplifies implementation and removes commented/dead code paths.
Longbow.Utility2026.slnx Adds benchmarks project under /tools/ solution folder.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +49 to +55
/// <param name="loggerFilterOptionsMonitor"></param>
public FileLoggerProvider(IOptionsMonitor<FileLoggerOptions> optionsMonitor, IConfiguration configuration, IOptionsMonitor<LoggerFilterOptions> loggerFilterOptionsMonitor)
: this(optionsMonitor.CurrentValue)
{
_config = configuration;
UpdateFilter(loggerFilterOptionsMonitor.CurrentValue);


<PropertyGroup>
<Version>10.0.0</Version>
<Version>10.0.1</Version>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(Logging): support rule fitler

2 participants