Log all your Flask requests with severity depending on the result code
Project description
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
from flask_requests_logging import FlaskRequestsLogging
app = flask.Flask(__name__)
FlaskRequestsLogging(app)
Go read the if you're interested in the details.
Enjoy!
Changelog
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!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file flask-requests-logging-0.5.tar.gz
.
File metadata
- Download URL: flask-requests-logging-0.5.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0f21808e60b03b236587773dbf47ca237eef0ce764382d365ce6b2061fc1dfe |
|
MD5 | 7f749d40410f09e7c1372e191a140412 |
|
BLAKE2b-256 | e7299135892137ff8f528d0c5e6c152386afc3d44e1b1bfe242950bcd54b871c |
File details
Details for the file flask_requests_logging-0.5-py3.8.egg
.
File metadata
- Download URL: flask_requests_logging-0.5-py3.8.egg
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eca074e30cb4e38d6034b8e80013e8eba6cd63141ff6fcb99f941d35b526255e |
|
MD5 | f4c9e66c345113483d13aab0fceed92c |
|
BLAKE2b-256 | 9d4f8a69ad7554e16989a145bffec2e696b0bc571f392cea9b523dabcc27c49d |
File details
Details for the file flask_requests_logging-0.5-py3-none-any.whl
.
File metadata
- Download URL: flask_requests_logging-0.5-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d236e45dc43aa34caf7abeb22871b7312fb02afc727aee8984d4b44d880dea68 |
|
MD5 | b34c50d8ea295bb6e5f5b87ffc651a87 |
|
BLAKE2b-256 | ff5401604aa6f81afee83ba02b667c8c842861af3f8b1d974f48eed7ab4b48bf |