Log all Flask requests with varying levels depending on the severity of the result
pip install flask-requests-logging
Or to install latest master version:
pip install git+https://github.com/smok-serwis/flask-requests-logging.git
import flask
import logging
from flask_requests_logging import FlaskRequestsLogging
app = flask.Flask(__name__)
FlaskRequestsLogging(app)
Go read the if you're interested in the details.
Enjoy!
- breaking change in API
- streaming requests will be calculated correctly now
- logger will configure itself automatically to render even the lowest levels
- logger will now log path instead of the match
- added support for logging exception tracebacks
- added measuring how long given request has taken
- added pass_as_extras parameter
- first release, wow!