rs / zerolog

Zero Allocation JSON Logger
MIT License
10.33k stars 564 forks source link

Make Log.Fatal() call Close on the writer before os.Exit(1) #634

Closed gmbuell closed 7 months ago

gmbuell commented 7 months ago

This fixes the footgun where log.Fatal() does not actually write any messages when used with any kind of buffered writer such as the diode writer.