inconshreveable / log15

Structured, composable logging for Go
https://godoc.org/github.com/inconshreveable/log15
Other
1.1k stars 145 forks source link

proposal: add Fatal() #160

Closed kevinburke closed 4 years ago

kevinburke commented 4 years ago

Sometimes I replace log.Fatal from the standard library with a call to logger.Error and then I forget to add an os.Exit() call.

It would be nice to mirror the semantics of the standard library and make it harder to make that mistake.

kevinburke commented 4 years ago

eh, this was previously discussed and closed in #23 .

(FWIW the place I forgot to call os.Exit was in a main function.)