Question

Where is my flask error log located?

I get an 500 Inernal Server Error from apache when visiting my flask website. Where can i find the server error log from Flask?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I know this is an old post, however it would be valuable information potentially for the next person.

I have always found my logs for flask app at:

/var/log/daemon.log

Found nginx access logs and status codes at:

/var/log/nginx/error.log

The error log from flask should be redirected to your apache error log, check /var/log/apache/error.log for more info.