Add Django structlog settings
Description
Instead of repeating the same "DevOps" structlog settings, incorporate into library and provide means to enable (or auto-enable).
Acceptance criteria
-
LOG_LEVELENV sets logging level (support strings and ints) -
Document that LOG_LEVEL must be set as a true env var -
Generate log warning for using EXTERNAL_SETTINGS_LOB_LEVEL -
DRY means to set structlog settings in django (minimal settings.pyentry required) -
Example Django app added to this project to excercise these additions -
get_structlog_loggerworks consistently with Django and non-Django projects
Edited by James Barr