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
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.6

  • added option to emit logging info before the request

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 Distributions

flask_requests_logging-0.6-py3.9.egg (3.8 kB view details)

Uploaded Source

flask_requests_logging-0.6-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file flask_requests_logging-0.6-py3.9.egg.

File metadata

  • Download URL: flask_requests_logging-0.6-py3.9.egg
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.0

File hashes

Hashes for flask_requests_logging-0.6-py3.9.egg
Algorithm Hash digest
SHA256 0b8c63f5e1d8679f2514a68187f5f2b7f092e77341c0206b962ac93e747f3f29
MD5 b7461ab73dd19d6a79ad9835dc32c162
BLAKE2b-256 8508d41b15b811d1b5b5ec65ef5d414f109a5079d9b3c30dcb38d7dce4cc36be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flask_requests_logging-0.6-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.0

File hashes

Hashes for flask_requests_logging-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1f0b9c79db2adae2cfe2d1ce5eb67d6d8c0d0259f33e3b9bf02c744a14be50cd
MD5 74a9135abe1581a50340a210c43ca38b
BLAKE2b-256 b960dee15d7c5f0200139089667a3c21bc37dc9d21975b3ef15624ac3d97dab1

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