Skip to content

slack-vitess-r14.0.5:Implement the Vitess Structure Logger VTSLogger#80

Merged
tanjinx merged 4 commits intoslack-vitess-r14.0.5from
emad-structured-logging-zap
May 11, 2023
Merged

slack-vitess-r14.0.5:Implement the Vitess Structure Logger VTSLogger#80
tanjinx merged 4 commits intoslack-vitess-r14.0.5from
emad-structured-logging-zap

Conversation

@EmadMokhtar
Copy link

@EmadMokhtar EmadMokhtar commented May 10, 2023

Description

This PR introduce a new flag --structured-logging to enable usage of Zap log instead of glog. Technically, I use noglog package to bind Zap log APIs with glog APIs. So the code can still use glog APIs but it's Zap logger.

Upstream WIP PR: vitessio#13061

Related Issue(s)

Checklist

  • "Backport to:" labels have been added if this change should be back-ported
  • Tests were added or are not required
  • Did the new or modified tests pass consistently locally and on the CI
  • Documentation was added or is not required

Deployment Notes

Signed-off-by: Emad Habib <ehabib@slack-corp.com>
@EmadMokhtar EmadMokhtar requested a review from a team as a code owner May 10, 2023 13:02
@EmadMokhtar EmadMokhtar self-assigned this May 10, 2023
@tanjinx tanjinx changed the title Implement the Vitess Structure Logger VTSLoger slack-vitess-r14.0.5:Implement the Vitess Structure Logger VTSLoger May 10, 2023
@EmadMokhtar
Copy link
Author

EmadMokhtar commented May 10, 2023

The tests are failing because I'm using Zap package that needs Go 1.9 but the module needs Go 1.18. I'll try to downgrade the Zap version.

@EmadMokhtar EmadMokhtar force-pushed the emad-structured-logging-zap branch from 7b8b85b to e9b19cf Compare May 10, 2023 15:03
@EmadMokhtar
Copy link
Author

Downgrade fixed the issue.

@EmadMokhtar EmadMokhtar changed the title slack-vitess-r14.0.5:Implement the Vitess Structure Logger VTSLoger slack-vitess-r14.0.5:Implement the Vitess Structure Logger VTSLogger May 10, 2023
Signed-off-by: Emad Habib <ehabib@slack-corp.com>
@EmadMokhtar EmadMokhtar force-pushed the emad-structured-logging-zap branch from e9b19cf to eab91bd Compare May 10, 2023 15:19
Signed-off-by: Emad Habib <ehabib@slack-corp.com>
Signed-off-by: Emad Habib <ehabib@slack-corp.com>
Copy link

@tanjinx tanjinx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@tanjinx tanjinx merged commit 0e55277 into slack-vitess-r14.0.5 May 11, 2023
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.

2 participants