Skip to content

Conversation

@caesay
Copy link
Member

@caesay caesay commented Mar 3, 2025

Closes #465
Closes #545

The logging callbacks have been preserved, but now velopack client libraries will log to the default file log as well.

This PR also removed Microsoft.Extensions.Logging from this library in favor of a small internal logging interface. Developers who do not present logs to users in their UI can rely on all the velopack logs now being present in velopack.log instead of capturing.

@codecov
Copy link

codecov bot commented Mar 3, 2025

Codecov Report

Attention: Patch coverage is 36.88699% with 296 lines in your changes missing coverage. Please review.

Project coverage is 40.18%. Comparing base (fd328ae) to head (105e5e0).
Report is 32 commits behind head on develop.

Files with missing lines Patch % Lines
src/lib-rust/src/logging.rs 0.00% 95 Missing ⚠️
src/lib-csharp/Locators/LinuxVelopackLocator.cs 0.00% 32 Missing and 5 partials ⚠️
src/lib-csharp/Locators/OsxVelopackLocator.cs 0.00% 31 Missing and 6 partials ⚠️
src/lib-csharp/Locators/WindowsVelopackLocator.cs 52.63% 15 Missing and 3 partials ⚠️
src/lib-rust/src/locator.rs 43.33% 17 Missing ⚠️
src/lib-cpp/src/statics.rs 0.00% 12 Missing ⚠️
src/lib-csharp/Logging/FileVelopackLogger.cs 57.14% 11 Missing and 1 partial ⚠️
src/lib-csharp/Sources/VelopackFlowSource.cs 0.00% 8 Missing and 3 partials ⚠️
src/lib-nodejs/velopack_nodeffi/src/logger.rs 0.00% 11 Missing ⚠️
src/lib-csharp/Logging/CombinedVelopackLogger.cs 47.05% 7 Missing and 2 partials ⚠️
... and 18 more
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #541      +/-   ##
===========================================
+ Coverage    34.55%   40.18%   +5.63%     
===========================================
  Files          224      230       +6     
  Lines        16810    17006     +196     
  Branches      1999     2045      +46     
===========================================
+ Hits          5808     6834    +1026     
+ Misses       10664     9815     -849     
- Partials       338      357      +19     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@caesay caesay force-pushed the cs/logging5 branch 2 times, most recently from 08bcb66 to 4715437 Compare March 3, 2025 21:11
@caesay caesay changed the title Client libraries direct logs to the same files as the CLI's Send all library logs to velopack.log by default Mar 3, 2025
Keboo
Keboo previously approved these changes Mar 4, 2025
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.

Obsolete the Logging callbacks in all libraries

3 participants