Beispiel #1
0
    def __call__(self, message, tags="notset"):
        url = config.connection_url() + "/api/log"

        log_data = {}
        log_data["message"] = message
        log_data["tags"] = tags

        data = self.jsonify(log_data)

        return self._post(url, data)
Beispiel #2
0
    def __call__(self, data):
        data = self.jsonify(data)
        url = config.connection_url() + "/api/exception"

        return self._post(url, data)