Skip to main content

Log all your Flask requests with severity depending on the result code

Project description

flask-requests-logging

Build Status Test Coverage Code Climate Issue Count PyPI PyPI version PyPI License

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

flask_requests_logging-1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file flask_requests_logging-1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for flask_requests_logging-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa6f9036dccd37829acbfa2967e94c2fc1e2ba4a4530798c28ae6a4681b9fcc8
MD5 dd1fd45248869e681ee8c6030a353b3e
BLAKE2b-256 099a31b108e3124b1639086eb4ae187c402b4512bd21f94a24d0703b1d8e9ea3

See more details on using hashes here.

Supported by

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