Skip to content

Commit 14bcecc

Browse files
committed
Merge pull request #41 from edudar/standard_field_names
Updated field names to match java counterparts supported by logstash crew
2 parents a0cf800 + 4b6184b commit 14bcecc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

logstash/formatter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ def get_extra_fields(self, record):
4747

4848
def get_debug_fields(self, record):
4949
fields = {
50-
'exc_info': self.format_exception(record.exc_info),
50+
'stack_trace': self.format_exception(record.exc_info),
5151
'lineno': record.lineno,
5252
'process': record.process,
53-
'threadName': record.threadName,
53+
'thread_name': record.threadName,
5454
}
5555

5656
# funcName was added in 2.5
@@ -127,8 +127,8 @@ def format(self, record):
127127
'type': self.message_type,
128128

129129
# Extra Fields
130-
'levelname': record.levelname,
131-
'logger': record.name,
130+
'level': record.levelname,
131+
'logger_name': record.name,
132132
}
133133

134134
# Add extra fields

0 commit comments

Comments
 (0)