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.
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.
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.