CodeForAfrica / HealthTools.API

HealthTools API to retrieve, structure and return data being used by the health tools. Accessible at https://api.healthtools.codeforafrica.org/
https://api.healthtools.codeforafrica.org/
MIT License
19 stars 20 forks source link

Log significant info using Python logging module #52

Open DavidLemayian opened 6 years ago

DavidLemayian commented 6 years ago

We would like to log significant events using Python's logging module and eventually send specific notifications to Slack. For our purposes we want to log:

  1. When the doc_type isn't understood so that:
    • Dev team can add keyword if it is appropriate.
    • Could be a question instead or a tip-off for newsroom to follow up with.
  2. When an error occurs e.g ElasticSearch is down or the nurses website is down.