Merge pull request #740 from dod-ccpo/uwsgi-logging

uWSGI JSON logging
This commit is contained in:
dandds
2019-04-04 16:47:31 -04:00
committed by GitHub
12 changed files with 175 additions and 6 deletions

View File

@@ -35,7 +35,7 @@ class JsonFormatter(logging.Formatter):
]
def format(self, record):
message_dict = {}
message_dict = {"source": "atst"}
for field, func in self._DEFAULT_RECORD_FIELDS:
message_dict[field] = func(record)