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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of zap log package #823

Merged
merged 23 commits into from
Oct 7, 2021
Merged

Use of zap log package #823

merged 23 commits into from
Oct 7, 2021

Conversation

emmanuelm41
Copy link
Contributor

No description provided.

@willscott
Copy link
Member

I think all the partners currently using logging in monitoring are using environmental variables to have the logs come out in JSON format from kit. Changing the names of the keys to have the '=' signs doesn't really make sense in that context, so while this switch to zap will maintain output as it shows up on the CLI, won't it break the json/programatic output mode?

Copy link
Collaborator

@nikkolasg nikkolasg left a comment

Choose a reason for hiding this comment

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

I think it's not necessary to enforce the "=" as well but good that you did it proactively justin case, LGTM :)

Copy link
Collaborator

@nikkolasg nikkolasg left a comment

Choose a reason for hiding this comment

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

Well Good question from Will as well tbh, we need to make sure the output in JSON is still well formed and makes sense

Copy link
Member

@willscott willscott left a comment

Choose a reason for hiding this comment

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

yeah, need valid json for this to work

@emmanuelm41 emmanuelm41 merged commit ea4ad2f into drand:master Oct 7, 2021
@emmanuelm41 emmanuelm41 deleted the zap-log-package branch October 7, 2021 19:03
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.

None yet

3 participants