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

chore: Use structured logging #131

Merged
merged 1 commit into from
Oct 5, 2022
Merged

chore: Use structured logging #131

merged 1 commit into from
Oct 5, 2022

Conversation

bstasyszyn
Copy link
Contributor

Convert all logs to structured logs where data is logged as key-value pairs.

closes #130

Signed-off-by: Bob Stasyszyn Bob.Stasyszyn@securekey.com

Convert all logs to structured logs where data is logged as key-value pairs.

closes trustbloc#130

Signed-off-by: Bob Stasyszyn <Bob.Stasyszyn@securekey.com>
@cla-bot cla-bot bot added the cla-signed label Oct 5, 2022
@codecov-commenter
Copy link

Codecov Report

Base: 85.48% // Head: 85.61% // Increases project coverage by +0.13% 🎉

Coverage data is based on head (e1012e2) compared to base (8b6a133).
Patch coverage: 88.07% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #131      +/-   ##
==========================================
+ Coverage   85.48%   85.61%   +0.13%     
==========================================
  Files          20       22       +2     
  Lines        2680     2726      +46     
==========================================
+ Hits         2291     2334      +43     
- Misses        228      231       +3     
  Partials      161      161              
Impacted Files Coverage Δ
pkg/controller/rest/operation.go 85.71% <0.00%> (ø)
cmd/vct/startcmd/start.go 82.92% <10.00%> (-0.44%) ⬇️
internal/pkg/log/logger.go 96.47% <96.66%> (+0.19%) ⬆️
internal/pkg/log/common.go 100.00% <100.00%> (ø)
internal/pkg/log/fields.go 100.00% <100.00%> (ø)
internal/pkg/tlsutil/certpool.go 82.60% <100.00%> (ø)
pkg/storage/postgres/log_storage.go 82.44% <100.00%> (ø)
pkg/storage/postgres/provider.go 89.47% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bstasyszyn bstasyszyn merged commit acba000 into trustbloc:main Oct 5, 2022
@bstasyszyn bstasyszyn deleted the 130 branch October 5, 2022 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use structured logging
4 participants