Skip to content

Log all Flask requests with varying levels depending on the severity of the result

License

Notifications You must be signed in to change notification settings

smok-serwis/flask-requests-logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Log all Flask requests with varying levels depending on the severity of the result

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages