Skip to content

Add Logger type and StandardLogger function to log package#26

Merged
trheyi merged 1 commit into
YaoApp:mainfrom
trheyi:main
Jun 30, 2025
Merged

Add Logger type and StandardLogger function to log package#26
trheyi merged 1 commit into
YaoApp:mainfrom
trheyi:main

Conversation

@trheyi

@trheyi trheyi commented Jun 30, 2025

Copy link
Copy Markdown
Contributor
  • Introduced Logger type that embeds logrus.Logger for enhanced logging capabilities.
  • Added StandardLogger function to return a standard Logger instance.
  • Updated SetFormatter function to use a switch statement for better readability.

- Introduced Logger type that embeds logrus.Logger for enhanced logging capabilities.
- Added StandardLogger function to return a standard Logger instance.
- Updated SetFormatter function to use a switch statement for better readability.
@trheyi trheyi merged commit 52c719f into YaoApp:main Jun 30, 2025
3 of 4 checks passed
@codecov

codecov Bot commented Jun 30, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 89.93%. Comparing base (9671965) to head (947282e).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
log/log.go 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #26      +/-   ##
==========================================
- Coverage   90.10%   89.93%   -0.17%     
==========================================
  Files           9        9              
  Lines        1091     1093       +2     
==========================================
  Hits          983      983              
- Misses         99      101       +2     
  Partials        9        9              

☔ 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.

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.

1 participant