flask-requests-logging
Log all Flask requests with varying levels depending on the severity of the result
Installation
pip install flask-requests-logging
Or to install latest master version:
pip install git+https://github.com/smok-serwis/flask-requests-logging.git
Usage
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!
Changelog
v1.0
- breaking change in API
- streaming requests will be calculated correctly now
- logger will configure itself automatically to render even the lowest levels
v0.5
- logger will now log path instead of the match
v0.4
- added support for logging exception tracebacks
v0.3
- added measuring how long given request has taken
v0.2
- added pass_as_extras parameter
v0.1
- first release, wow!
Release files for flask-requests-logging 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flask_requests_logging-1.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / flask_requests_logging-1.1-py3-none-any.whl
| Download URL | flask_requests_logging-1.1-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
58585a00de5b5f63af3b8cdb6fa8a4768840d4c06ba68e103ead7335fcc40d67
|
|
BLAKE2b-256 checksum How to use checksums |
1a0e352d355afcfe82c3982471ae8b70fd35e5ac66a18cc3e43665161ccbd264
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.9
|