Skip to content

How can I customise the location in which the logs are sent to? #1111

Answered by juampynr
gsinhazscaler asked this question in Q&A
Discussion options

You must be logged in to vote

It's defined by a configuration option: outputPaths.

See https://pkg.go.dev/go.uber.org/zap#example-package-BasicConfiguration for an example.
See https://pkg.go.dev/go.uber.org/zap#Config for a short description of outputPaths.

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 #1092 on June 15, 2022 12:25.