Skip to content

could we write normal log into stderr? #37

@Hexilee

Description

@Hexilee

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:

  1. write all log into stderr by default (may be incompatible)
  2. keep the default behavior and add an option to allow normal log to be written into stderr (currently only support file path)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions