rji-futures-lab / django-fcc-opif

For extracting and analyzing data from the FCC Public Inspection files
0 stars 0 forks source link

Add logging configuration for local and prod environments #17

Open gordonje opened 5 years ago

gordonje commented 5 years ago

We could start with replacing all of our print statements with calls to our logger.

In the local development environment, we want to log to stdout (or a local file).

In the production environment, AWS CloudWatch will work (though, I'm open to other suggestions).

Actually, Zappa and those print statements we've sprinkled throughout our code are currently being logged to CloudWatch, but this is currently too noisy. We need a way to filter down to just logging statements that we add (exclude the Zappa log statements).

Some potential helpful resources: