apex / log

Structured logging package for Go.
MIT License
1.37k stars 112 forks source link

Add a Flush() to the interface? #49

Open matthewmueller opened 7 years ago

matthewmueller commented 7 years ago

This would require some updates, but it would help for handlers like papertrail and ES to have the ability to buffer, with a defer log.Flush(). For ones that go to stderr, it could be a no-op.

tj commented 7 years ago

agreed! It could be optional as a separate interface too I suppose, or just io.Flusher, but the internal logger I use for Ping has a Flush() method haha so I'm down.