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.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for flask_requests_logging-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 58585a00de5b5f63af3b8cdb6fa8a4768840d4c06ba68e103ead7335fcc40d67
MD5 67eee1599f9accd0a0267620f90dbf18
BLAKE2b-256 1a0e352d355afcfe82c3982471ae8b70fd35e5ac66a18cc3e43665161ccbd264

See more details on using hashes here.

Supported by

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