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

Release v1.18.0 #973

Merged
merged 2 commits into from Jun 28, 2021
Merged

Release v1.18.0 #973

merged 2 commits into from Jun 28, 2021

Conversation

abhinav
Copy link
Collaborator

@abhinav abhinav commented Jun 28, 2021

Release v1.18.0 of Zap that contains several new features including:

  • zapio.Writer to treat a logger as an io.Writer
  • zapcore.BufferedWriteSyncer to buffer log writes in memory
  • zap.Clock to control the source of time
  • New filters on zaptest/observer.Observer

This PR includes the release commit and some added documentation for
zapio.Writer.

Add more documentation and an example test for zapio.Writer to
demonstrate its usage.
This release contains the following API changes per apidiff:

```
--- go.uber.org/zap ---
Compatible changes:
- WithClock: added
--- go.uber.org/zap/buffer ---
Compatible changes:
- (*Buffer).WriteByte: added
- (*Buffer).WriteString: added
--- go.uber.org/zap/zapcore ---
Compatible changes:
- BufferedWriteSyncer: added
- Clock: added
- DefaultClock: added
--- go.uber.org/zap/zaptest/observer ---
Compatible changes:
- (*ObservedLogs).Filter: added
- (*ObservedLogs).FilterLevelExact: added
```

In addition to that, this release contains the new `zapio` package
which, being a completely new package, is also a compatible change.
@codecov
Copy link

codecov bot commented Jun 28, 2021

Codecov Report

Merging #973 (80f724f) into master (d5c2a1a) will decrease coverage by 0.09%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #973      +/-   ##
==========================================
- Coverage   98.19%   98.10%   -0.10%     
==========================================
  Files          46       46              
  Lines        2055     2055              
==========================================
- Hits         2018     2016       -2     
- Misses         29       30       +1     
- Partials        8        9       +1     
Impacted Files Coverage Δ
zapio/writer.go 100.00% <ø> (ø)
zapcore/sampler.go 96.15% <0.00%> (-3.85%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d5c2a1a...80f724f. Read the comment docs.

@abhinav abhinav requested a review from prashantv June 28, 2021 16:46
@abhinav abhinav merged commit 35f15d1 into master Jun 28, 2021
@abhinav abhinav deleted the release-1.18 branch June 28, 2021 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants