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
This solution provides you a way to get your own prints and stack traces but without information level logs from flask suck as 127.0.0.1 - - [15/Feb/2013 10:52:22] "GET /index.html HTTP/1.1" 200
from flask import Flask
import logging
app = Flask(__name__)
log = logging.getLogger('werkzeug')
log.disabled = True