@@ -33,7 +33,6 @@ class AMQPLogstashHandler(SocketHandler, object):
33
33
34
34
:param tags: list of tags for a logger (default is None).
35
35
:param message_type: The type of the message (default logstash).
36
- :param version: version of logstash event schema (default is 0).
37
36
38
37
:param extra_fields: Send extra fields on the log record to graylog
39
38
if true (the default)
@@ -46,7 +45,7 @@ class AMQPLogstashHandler(SocketHandler, object):
46
45
def __init__ (self , host = 'localhost' , port = 5672 , username = 'guest' ,
47
46
password = 'guest' , exchange = 'logstash' , exchange_type = 'fanout' ,
48
47
virtual_host = '/' , message_type = 'logstash' , tags = None ,
49
- durable = False , passive = False , version = 0 , extra_fields = True ,
48
+ durable = False , passive = False , extra_fields = True ,
50
49
fqdn = False , facility = None , exchange_routing_key = '' ):
51
50
52
51
@@ -66,9 +65,7 @@ def __init__(self, host='localhost', port=5672, username='guest',
66
65
67
66
# Extract Logstash paramaters
68
67
self .tags = tags or []
69
- fn = formatter .LogstashFormatterVersion1 if version == 1 \
70
- else formatter .LogstashFormatterVersion0
71
- self .formatter = fn (message_type , tags , fqdn )
68
+ self .formatter = formatter .LogstashFormatter (message_type , tags , fqdn )
72
69
73
70
# Standard logging parameters
74
71
self .extra_fields = extra_fields
0 commit comments