I have a Flask server running in standalone mode (using app.run()
). But, I don\'t want any messages in the console, like
127.0.0.1 - - [15/Feb/2
@Drewes solution works most of the time, but in some cases, I still tend to get werkzeug logs. If you really don't want to see any of them, I suggest you disabling it like that.
from flask import Flask
import logging
app = Flask(__name__)
log = logging.getLogger('werkzeug')
log.disabled = True
app.logger.disabled = True
For me it failed when abort(500)
was raised.