sample uWSGI logging

- added source identifier to application logs
- added toy NGINX/uWSGI setup in sample directory
This commit is contained in:
dandds
2019-04-02 14:16:24 -04:00
parent 300199202a
commit a86751e010
4 changed files with 78 additions and 1 deletions

View File

@@ -34,7 +34,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)