Repository navigation
fix(logging): reference Serilog.Sinks.File for the File sink - #2558
Conversation
logger.yml's File sink failed at startup with a FileNotFoundException because no project referenced the sink assembly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
File sink dependency and configuration Directory.Packages.props, src/NosCore.Core/NosCore.Core.csproj, configuration/logger.yml |
The project references Serilog.Sinks.File version 7.0.0. The logger configuration adds a shared file sink at logs/noscore-.log with daily rolling and a date-and-time output template. |
Priority:
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix
Merge Risk: 
Minimal · up to ae0d1
-
The file logging setup is ready to merge based on the supplied evidence.
Pre-merge checks: 
5
-
Full details: Title check
-
Explanation
The title names the change: adding a reference to Serilog.Sinks.File so the configured File sink loads at startup. The changeset adds the central package version, the NosCore.Core project reference, and a File sink in logger.yml, which fits the title's fix for the startup FileNotFoundException. The title does not mention the new daily rolling log file, but it covers the primary fix. It uses the conventional commit format with a clear scope.
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (3 skipped: 3 unsupported.)
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Comment @coderabbitai help to get the list of available commands.
Startup threw
FileNotFoundException: Could not load file or assembly 'Serilog.Sinks.File, Version=7.0.0.0'because the File sink was configured but no project referenced the sink package.Serilog.Sinks.File7.0.0 added to central package versions and referenced fromNosCore.Corelogger.ymlgets the daily rollinglogs/noscore-.logFile sink next to Console (*.logis already gitignored)Testing
dotnet build NosCore.sln: 0 warnings, 0 errorslogs/noscore-20261027.log🤖 Generated with Claude Code
Summary by CodeRabbit