# flask-requests-logging
[](https://travis-ci.com/smok-serwis/flask-requests-logging)
[](https://codeclimate.com/github/smok-serwis/flask-requests-logging/test_coverage)
[](https://codeclimate.com/github/smok-serwis/flask-requests-logging)
[](https://codeclimate.com/github/smok-serwis/flask-requests-logging)
[](https://pypi.python.org/pypi/flask-requests-logging)
[](https://badge.fury.io/py/flask-requests-logging)
[](https://pypi.python.org/pypi/flask-requests-logging)
[](https://github.com/Dronehub/flask-requests-logging)
Log all Flask requests with varying levels depending on the severity of the result
## Installation
```bash
pip install flask-requests-logging
```
Or to install latest master version:
```bash
pip install git+https://github.com/smok-serwis/flask-requests-logging.git
```
## Usage
```python
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](flask_requests_logging/__init__.py).
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!
            
         
        Raw data
        
            {
    "_id": null,
    "home_page": "https://github.com/smok-serwis/flask-requests-logging",
    "name": "flask-requests-logging",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*",
    "maintainer_email": null,
    "keywords": "flask, logging, web",
    "author": "Piotr Ma\u015blanka",
    "author_email": "pmaslanka@smok.co",
    "download_url": null,
    "platform": null,
    "description": "# flask-requests-logging\r\n[](https://travis-ci.com/smok-serwis/flask-requests-logging)\r\n[](https://codeclimate.com/github/smok-serwis/flask-requests-logging/test_coverage)\r\n[](https://codeclimate.com/github/smok-serwis/flask-requests-logging)\r\n[](https://codeclimate.com/github/smok-serwis/flask-requests-logging)\r\n[](https://pypi.python.org/pypi/flask-requests-logging)\r\n[](https://badge.fury.io/py/flask-requests-logging)\r\n[](https://pypi.python.org/pypi/flask-requests-logging)\r\n[](https://github.com/Dronehub/flask-requests-logging)\r\n\r\nLog all Flask requests with varying levels depending on the severity of the result\r\n\r\n## Installation\r\n\r\n```bash\r\npip install flask-requests-logging\r\n```\r\n\r\nOr to install latest master version:\r\n\r\n```bash\r\npip install git+https://github.com/smok-serwis/flask-requests-logging.git\r\n```\r\n\r\n## Usage\r\n\r\n```python\r\nimport flask\r\nimport logging\r\nfrom flask_requests_logging import FlaskRequestsLogging\r\n\r\napp = flask.Flask(__name__)\r\nFlaskRequestsLogging(app)\r\n```\r\n\r\nGo read the [if you're interested in the details](flask_requests_logging/__init__.py).\r\n\r\nEnjoy!\r\n\r\n## Changelog\r\n\r\n### v1.0\r\n\r\n* breaking change in API\r\n* streaming requests will be calculated correctly now\r\n* logger will configure itself automatically to render even the lowest levels\r\n\r\n### v0.5\r\n\r\n* logger will now log path instead of the match \r\n\r\n### v0.4\r\n\r\n* added support for logging exception tracebacks\r\n\r\n### v0.3\r\n\r\n* added measuring how long given request has taken\r\n\r\n### v0.2\r\n\r\n* added pass_as_extras parameter\r\n\r\n### v0.1\r\n\r\n* first release, wow!\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Log all your Flask requests with severity depending on the result code",
    "version": "1.1",
    "project_urls": {
        "Code": "https://github.com/smok-serwis/flask-requests-logging",
        "Homepage": "https://github.com/smok-serwis/flask-requests-logging",
        "Issue tracker": "https://github.com/smok-serwis/flask-requests-logging/issues"
    },
    "split_keywords": [
        "flask",
        " logging",
        " web"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1a0e352d355afcfe82c3982471ae8b70fd35e5ac66a18cc3e43665161ccbd264",
                "md5": "67eee1599f9accd0a0267620f90dbf18",
                "sha256": "58585a00de5b5f63af3b8cdb6fa8a4768840d4c06ba68e103ead7335fcc40d67"
            },
            "downloads": -1,
            "filename": "flask_requests_logging-1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "67eee1599f9accd0a0267620f90dbf18",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*",
            "size": 5011,
            "upload_time": "2024-12-09T12:50:18",
            "upload_time_iso_8601": "2024-12-09T12:50:18.640140Z",
            "url": "https://files.pythonhosted.org/packages/1a/0e/352d355afcfe82c3982471ae8b70fd35e5ac66a18cc3e43665161ccbd264/flask_requests_logging-1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-09 12:50:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "smok-serwis",
    "github_project": "flask-requests-logging",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "flask-requests-logging"
}