MQTT hook for logrus