Closed slucky31 closed 2 months ago
The changes primarily involve adding logging enhancements, such as new logging sinks and updated log levels. There are also updates to project metadata by adding a <Product>
tag with the value "MCM" across multiple project files. A new StartupInfo
class is introduced to print detailed startup information. Corresponding unit tests for the StartupInfo
methods are also added.
File | Change Summary |
---|---|
Directory.Packages.props |
Updated NSubstitute.Analyzers.CSharp version to 1.0.17 . |
Web/Program.cs |
Added call to StartupInfo.Print() before app.Run() . |
Web/StartupInfo.cs |
Introduced StartupInfo class with methods to print startup details. Added multiple using directives and new methods. |
tests/Web.Tests/StartupInfoTests.cs |
Added test methods for StartupInfo.GetInBestUnit method. |
Application/Application.csproj |
Added <Product> element with value MCM . |
Domain/Domain.csproj |
Added <Product> element with value MCM . |
Persistence/Persistence.csproj |
Added <Product> element with value MCM . |
Web/Web.csproj |
Added <Product> , <Version> , and <Authors> elements, and reordered elements. Removed <Nullable> element. |
Web/appsettings.json |
Enhanced logging configuration: added Serilog sinks, adjusted log levels, updated log file path, enabled rolling on file size, and changed formatter. |
sequenceDiagram
participant User
participant WebApp
participant StartupInfo
participant Console
User->>WebApp: Starts Application
WebApp->>StartupInfo: Call Print()
StartupInfo->>Console: Print System Info
Console->>User: Display Info
WebApp->>User: Application Running
In the land of code, where the bytes do chime,
A rabbit hopped and tinkered, spent some time.
With logs enhanced and products named right,
Startup info gleamed in the dawn's first light.
Tests were tweaked and spans well-spent,
Now our code shines, ever so elegant!
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Coverage variation | Diff coverage |
---|---|
Report missing for 950320addfc82652ab0873823a1cc52f451c2e66[^1] | :white_check_mark: 100.00% (target: 80.00%) |
:rocket: Don’t miss a bit, follow what’s new on Codacy.
Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more [^1]: Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.
Summary by CodeRabbit
New Features
StartupInfo
class to display detailed startup information, including OS, .NET environment, and hardware details.Serilog
to improve application diagnostics.Bug Fixes
appsettings.json
to use compact JSON formatter and adjusted log levels for clarity.Tests
StartupInfo
methods to ensure accurate memory size conversions.Chores
Product
metadata for better project identification and management.