Add options to `log.Init` to change format and possible other options
@burmudar is already working on this.
Since Sep 27, 2022.
Assessment
This issue has not been assessed yet.
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
- Dominant language
- Go
- Stars
- 13
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sourcegraph/log
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
sourcegraph/log#65 ·
Similar issues
-
textual definition
Difficulty 1/5 Under an hour Newbie friendliness 90/100
geneontology/go-ontology#32653 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
needs design
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Priority/High ready-for-agent Severity/Major Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100