Problem scenario
The book Expert Python Programming (page 278) says 12 Factor app recommends that the application should not be aware of the format of the logs. JSON format for logs can be beneficial for various purposes. You want Nginx’s access logs — but not error logs — to be in JSON format. What do you do?
Solution
Use a file like this for your nginx.conf.
…
Continue reading “How Do You Get Nginx Logs to be in JSON format?”