Python Forum
Enable error logging to browser for Python's Flask under Apache + mod_wsgi - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: Enable error logging to browser for Python's Flask under Apache + mod_wsgi (/thread-12885.html)



Enable error logging to browser for Python's Flask under Apache + mod_wsgi - nikos - Sep-17-2018

what are the exact steps i need to execute in order to enable error logging to browser so i don't check the error_log via console any more?

I'am using Flask under Apache + mod_wsgi.

If i place app.debug = True within my app it does not do anything.

from flask import Flask, request, redirect, render_template, url_for

application = Flask(__name__)

app = application
app.config['TESTING'] = True



RE: Enable error logging to browser for Python's Flask under Apache + mod_wsgi - nikos - Sep-18-2018

Can anybody help me send error output to the browser? Its really annoying logging via ssh and checking error_log with 'tail -f' each time.....