|
@ -9,6 +9,7 @@ from .sender import LogzioSender |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class LogzioHandler(logging.Handler): |
|
|
class LogzioHandler(logging.Handler): |
|
|
|
|
|
|
|
|
def __init__(self, token, logzio_type="python", logs_drain_timeout=3, |
|
|
def __init__(self, token, logzio_type="python", logs_drain_timeout=3, |
|
|
url="https://listener.logz.io:8071", debug=False): |
|
|
url="https://listener.logz.io:8071", debug=False): |
|
|
|
|
|
|
|
@ -87,4 +88,3 @@ class LogzioHandler(logging.Handler): |
|
|
|
|
|
|
|
|
def emit(self, record): |
|
|
def emit(self, record): |
|
|
self.logzio_sender.append(self.format_message(record)) |
|
|
self.logzio_sender.append(self.format_message(record)) |
|
|
|
|
|
|