Skip to main content

UNKNOWN

Project description

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'

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

Flask-Logging-0.1.3.tar.gz (1.1 kB view details)

Uploaded Source

File details

Details for the file Flask-Logging-0.1.3.tar.gz.

File metadata

  • Download URL: Flask-Logging-0.1.3.tar.gz
  • Upload date:
  • Size: 1.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Flask-Logging-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0110cbc46b222b748c2b522215c5dfbc67d82b993f2340ecbd8515c0e7fe8d5f
MD5 9a5d35c80b6ce54b3935e5cdc35e3f75
BLAKE2b-256 0a6377b776de80ed6506390c3e7d5d29bab22786e4f8ee0c32a0485600963c28

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page