Skip to content

Zap is not logging inside some loops #1113

Answered by prashantv
jptosso asked this question in Q&A
Discussion options

You must be logged in to vote

When the default production config is used, zap does sampling by default. You can disable sampling by setting the sampling policy to nil,

	cfg := zap.NewProductionConfig()
	cfg.Sampling = nil // disable sampling

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by abhinav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1035 on June 15, 2022 12:48.