Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#42 0 commenti 2 reazioni 1 assegnatario Vedi su GitHub

@burmudar ci sta già lavorando.

Dal 27/9/2022.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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

Lingua principale
Go
Stelle
13
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sourcegraph/log

Tutte le issue di sourcegraph/log

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.