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: logging data from gin.Context #99

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

laggu
Copy link
Contributor

@laggu laggu commented Nov 28, 2024

Closes #95

Add function for logging data from gin.Context
developer can log data by setting logger.WithContext function

@laggu
Copy link
Contributor Author

laggu commented Nov 28, 2024

@appleboy please check the pr

@codecov-commenter
Copy link

codecov-commenter commented Nov 29, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Project coverage is 90.00%. Comparing base (d96c742) to head (575d32a).
Report is 34 commits behind head on master.

Files with missing lines Patch % Lines
options.go 0.00% 4 Missing ⚠️
logger.go 0.00% 2 Missing and 1 partial ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #99      +/-   ##
==========================================
- Coverage   94.24%   90.00%   -4.25%     
==========================================
  Files           2        2              
  Lines         139      150      +11     
==========================================
+ Hits          131      135       +4     
- Misses          5       11       +6     
- Partials        3        4       +1     
Flag Coverage Δ
go- ?
go-1.18 ?
go-1.19 ?
go-1.20 ?
go-1.21 90.00% <0.00%> (-4.25%) ⬇️
go-1.22 90.00% <0.00%> (-4.25%) ⬇️
go-1.23 90.00% <0.00%> (?)
macos-latest ?
ubuntu-latest 90.00% <0.00%> (-4.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 637ac38 into gin-contrib:master Nov 29, 2024
6 checks passed
@appleboy
Copy link
Member

@laggu Thanks.

@laggu laggu deleted the feat/gin-context branch November 29, 2024 01:14
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.

logging value in gin.Context after gin handler finish
3 participants