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

Adding pretty structured logging support #265

Merged
merged 1 commit into from
May 26, 2020
Merged

Adding pretty structured logging support #265

merged 1 commit into from
May 26, 2020

Conversation

LandonTClipp
Copy link
Collaborator

@LandonTClipp LandonTClipp commented May 17, 2020

Capture

This PR adds structured logging to mockery and replaces calls to fmt.Print* with zerolog. Structured part of logging is passed around via context.

I don't know if I like forcing functions to accept ctx, but that is how I generally pass structured logs around in my go projects. That's quite a long debate.

@LandonTClipp LandonTClipp changed the title Adding structured logging support Adding pretty structured logging support May 17, 2020
@LandonTClipp LandonTClipp marked this pull request as ready for review May 17, 2020 22:15
@LandonTClipp
Copy link
Collaborator Author

I will leave this PR up for a week or two for comments.

Fixing tests and removing some keys

Removing all Printfs that were used for logging

Moving argument logs over to zerolog

Fix bug with log
@LandonTClipp
Copy link
Collaborator Author

This PR is going to be part of the 2.0.0-alpha.1 tag

@LandonTClipp LandonTClipp merged commit f304120 into vektra:master May 26, 2020
@LandonTClipp LandonTClipp deleted the logging branch May 26, 2020 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant