Death v2.0 Release Notes

Release Date: 2018-03-27 // over 2 years ago
  • 🚀 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{}) errorDebug(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.