-
Notifications
You must be signed in to change notification settings - Fork 33
could we write normal log into stderr? #37
Copy link
Copy link
Open
Description
As https://github.com/pingcap/log/blob/master/log.go#L53, if we don't customize cfg.File, normal log will be written into stdout, which pollutes the stdout of applications in the downstream.
I see this library distinguishes normal log and error log, and they are designed to be written into different places. So I propose two solutions:
- write all log into stderr by default (may be incompatible)
- keep the default behavior and add an option to allow normal log to be written into stderr (currently only support file path)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels