Closed smurfpandey closed 4 years ago
Nice idea. Please move timeout to Hook struct.
Timeout is only needed for flush method. And if we move the timeout to struct, when will the user provide it's value?
func (hook *Hook) SetFlushTimeout(timeout time.Duration) {
hook.flushTimeout = timeout
}
In my application errors were not getting reported. After calling flush method it started to work.