Skip to content

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

Merged
bulldozer-bot[bot] merged 5 commits intodevelopfrom
bm/svc1zap
Apr 22, 2022
Merged

feature: Add adapters/svc1zap for code that accepts *zap.Logger#198
bulldozer-bot[bot] merged 5 commits intodevelopfrom
bm/svc1zap

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

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