Hooks for logrus