Filter certain requests from the Flask log. Useful during development when requests fill up with /static/ URLs. Not for use in production, Flask-Logging monkey patches the werkzeug logging function.
Installation
pip install flask-logging
Usage
from flask.ext.logging import Filter
filter = Filter('static')
Filters any request with the word ‘static’ from the log.
Filtering more than one word:
filter = Filter('static', 'admin')
Updating the filter:
filter = Filter('static')
filter.filters = 'static', 'admin'
Metadata
Release files for Flask-Logging 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Flask-Logging-0.1.3.tar.gz | 1.1 kB | Details |
Release files / Flask-Logging-0.1.3.tar.gz
| Download URL | Flask-Logging-0.1.3.tar.gz |
|---|---|
| Size | 1.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0110cbc46b222b748c2b522215c5dfbc67d82b993f2340ecbd8515c0e7fe8d5f
|
|
BLAKE2b-256 checksum How to use checksums |
0a6377b776de80ed6506390c3e7d5d29bab22786e4f8ee0c32a0485600963c28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |