sourcegraph / sourcegraph/log

Add options to `log.Init` to change format and possible other options

Open
#42 0 comments 2 reactions 1 assignee View on GitHub

@burmudar is already working on this.

Since Sep 27, 2022.

Dominant language
Go
Stars
13
Forks
3
PR merge metrics
No merged PRs in 30d

Description

There is a need to provide a options to the logger through something else besides environment variables.

@eseliger For instance wants to be able to change the format depending on whether the tool is executing with a TTY available.

Should this be “development mode” or could we expose that as an option in log.Init to say humanInterface or something like that? Feels a bit more generic than SRC_DEVELOPMENT and I could make it dependent on IS_TTY for my use-case

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.