Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add skipper functionality to logger #80

Merged
merged 1 commit into from
Feb 2, 2024
Merged

feat: add skipper functionality to logger #80

merged 1 commit into from
Feb 2, 2024

Conversation

appleboy
Copy link
Member

@appleboy appleboy commented Feb 2, 2024

  • Add skipper usage example in README.md
  • Add skip field to logger config struct
  • Modify SetLogger function to use the skip field
  • Add skipper type and WithSkipper option function to logger.go
  • Add tests for skipper functionality in logger_test.go
  • Add WithSkipper option function to options.go

- Add skipper usage example in README.md
- Add `skip` field to logger config struct
- Modify `SetLogger` function to use the `skip` field
- Add `skipper` type and `WithSkipper` option function to logger.go
- Add tests for skipper functionality in logger_test.go
- Add `WithSkipper` option function to options.go

Signed-off-by: appleboy <appleboy.tw@gmail.com>
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5b0d125) 93.98% compared to head (5159b67) 94.24%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #80      +/-   ##
==========================================
+ Coverage   93.98%   94.24%   +0.25%     
==========================================
  Files           2        2              
  Lines         133      139       +6     
==========================================
+ Hits          125      131       +6     
  Misses          5        5              
  Partials        3        3              
Flag Coverage Δ
go- 94.24% <100.00%> (+0.25%) ⬆️
go-1.18 94.24% <100.00%> (+0.25%) ⬆️
go-1.19 94.24% <100.00%> (+0.25%) ⬆️
go-1.20 94.24% <100.00%> (+0.25%) ⬆️
go-1.21 94.24% <100.00%> (+0.25%) ⬆️
macos-latest 94.24% <100.00%> (+0.25%) ⬆️
ubuntu-latest 94.24% <100.00%> (+0.25%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@appleboy appleboy merged commit 637bb30 into master Feb 2, 2024
8 checks passed
@appleboy appleboy deleted the skip branch February 2, 2024 12:58
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.

2 participants