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
from flask_requests_logging import FlaskRequestsLogging
app = flask.Flask(__name__)
FlaskRequestsLogging(app)
Go read the if you're interested in the details.
Enjoy!
- 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!