Repository navigation
fix(log): store ConsoleLogProvider adapter per instance and fix CategoryLogFilter docs - #1112
EnesKartal wants to merge 1 commit into
Conversation
…oryLogFilter docs
Reviewer's GuideAPICorrect CategoryLogFilter’s public documentation to describe its provider and category pass-through behavior.
ImplementationMake each ConsoleLogProvider retain and use the adapter supplied to its own constructor, and update the provider documentation to match.
TestsAdd tests for per-instance console adapters and CategoryLogFilter’s category and provider matching behavior.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 52 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
| /// </remarks> | ||
| /// <param name="provider">The provider type to filter logs by. If <c>null</c>, no provider type filter will be applied.</param> | ||
| /// <param name="isExclusive">If set to <c>true</c>, the filter will only allow logs from the specified categories. If set to <c>false</c>, all categories except those specified will be allowed.</param> | ||
| /// <param name="isExclusive">If set to <c>true</c>, the filter will exclude logs from the specified categories and allow all others. If set to <c>false</c>, only logs from the specified categories will be allowed.</param> |
| @@ -0,0 +1,48 @@ | |||
| using CrispyWaffle.Log; | |||
| @@ -0,0 +1,48 @@ | |||
| using CrispyWaffle.Log; | |||
Fixes #1041
Summary
eadonly field instead of a static field so each ConsoleLogProvider instance writes through the IConsoleLogAdapter passed to its constructor.
Summary by Sourcery
Make console logging adapters instance-specific and align CategoryLogFilter documentation and tests with its actual behavior.
Bug Fixes:
Tests: