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

feature: Add adapters/svc1zap for code that accepts *zap.Logger #198

Merged
merged 5 commits into from
Apr 22, 2022

Conversation

bmoylan
Copy link
Contributor

@bmoylan bmoylan commented Apr 21, 2022

Similar in inspiration to long-stalled #114. In some products that use witchcraft logging, we depend on packages that use zap. This adapter lets us create a zap logger which delegates to svc1log for emitting SLS-valid payloads.

Examples of open-source libraries which accept zap outputs but we want logs emitted as service.1:

==COMMIT_MSG==
Add adapters/svc1zap for code that accepts *zap.Logger
==COMMIT_MSG==


This change is Reviewable

@bmoylan bmoylan requested review from nmiyake and tabboud April 21, 2022 16:22
Copy link
Contributor

@tabboud tabboud left a comment

Choose a reason for hiding this comment

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

Overall looks good to me. Just a few nits

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
adapters/svc1zap/svc1zap.go Outdated Show resolved Hide resolved
adapters/svc1zap/svc1zap_test.go Outdated Show resolved Hide resolved
Co-authored-by: Tony Abboud <tdabboud@hotmail.com>
@bmoylan
Copy link
Contributor Author

bmoylan commented Apr 22, 2022

@tabboud done!

@bulldozer-bot bulldozer-bot bot merged commit 07cc771 into develop Apr 22, 2022
@bulldozer-bot bulldozer-bot bot deleted the bm/svc1zap branch April 22, 2022 19:17
@svc-autorelease
Copy link
Collaborator

Released 1.20.0

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.

4 participants