Release 2.0
This release encompasses a compatibility change for integrating with logrus. Logrus and seelog are incompatible loggers so we need a new major version in order to use one or the other.
Specifically this Logger
interface that seelog uses:
type Logger interface {
Error(v ...interface{}) error
Debug(v ...interface{})
Info(v ...interface{})
Warn(v ...interface{}) error
}
is incompatible with the interface that logrus uses:
type Logger interface {
Error(v ...interface{})
Debug(v ...interface{})
Info(v ...interface{})
Warn(v ...interface{})
}
As such we need to version death depending on the logger you are using.
With this release you should be importing Death using gopkg.in with the version you want. See the Readme for more details on how to import the different versions.
This also contains a quality of life fix for the builder pattern with SetTimeout
and SetLogger
. Both of those functions will now return the death object so you can chain function calls.