From 7b2040706f04f83d85fed5091bdb47e6055badc9 Mon Sep 17 00:00:00 2001 From: Oren Mazor Date: Tue, 30 Jan 2018 15:33:43 -0500 Subject: [PATCH] PEP8 --- logzio/handler.py | 2 +- logzio/sender.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/logzio/handler.py b/logzio/handler.py index 44bbf6c..d3abc7c 100644 --- a/logzio/handler.py +++ b/logzio/handler.py @@ -9,6 +9,7 @@ from .sender import LogzioSender class LogzioHandler(logging.Handler): + def __init__(self, token, logzio_type="python", logs_drain_timeout=3, url="https://listener.logz.io:8071", debug=False): @@ -87,4 +88,3 @@ class LogzioHandler(logging.Handler): def emit(self, record): self.logzio_sender.append(self.format_message(record)) - diff --git a/logzio/sender.py b/logzio/sender.py index 9a715d5..d16a3c6 100644 --- a/logzio/sender.py +++ b/logzio/sender.py @@ -22,6 +22,7 @@ def backup_logs(logs): class LogzioSender: + def __init__(self, token, url="https://listener.logz.io:8071", logs_drain_timeout=5, debug=False): self.token = token self.url = "{0}/?token={1}".format(url, token)