# flask-requests-logging
[![Build Status](https://travis-ci.com/smok-serwis/flask-requests-logging.svg)](https://travis-ci.com/smok-serwis/flask-requests-logging)
[![Test Coverage](https://api.codeclimate.com/v1/badges/dc7467fe51588e461e87/test_coverage)](https://codeclimate.com/github/smok-serwis/flask-requests-logging/test_coverage)
[![Code Climate](https://codeclimate.com/github/smok-serwis/flask-requests-logging/badges/gpa.svg)](https://codeclimate.com/github/smok-serwis/flask-requests-logging)
[![Issue Count](https://codeclimate.com/github/smok-serwis/flask-requests-logging/badges/issue_count.svg)](https://codeclimate.com/github/smok-serwis/flask-requests-logging)
[![PyPI](https://img.shields.io/pypi/pyversions/flask-requests-logging.svg)](https://pypi.python.org/pypi/flask-requests-logging)
[![PyPI version](https://badge.fury.io/py/flask-requests-logging.svg)](https://badge.fury.io/py/flask-requests-logging)
[![PyPI](https://img.shields.io/pypi/implementation/flask-requests-logging.svg)](https://pypi.python.org/pypi/flask-requests-logging)
[![License](https://img.shields.io/pypi/l/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[![Build Status](https://travis-ci.com/smok-serwis/flask-requests-logging.svg)](https://travis-ci.com/smok-serwis/flask-requests-logging)\r\n[![Test Coverage](https://api.codeclimate.com/v1/badges/dc7467fe51588e461e87/test_coverage)](https://codeclimate.com/github/smok-serwis/flask-requests-logging/test_coverage)\r\n[![Code Climate](https://codeclimate.com/github/smok-serwis/flask-requests-logging/badges/gpa.svg)](https://codeclimate.com/github/smok-serwis/flask-requests-logging)\r\n[![Issue Count](https://codeclimate.com/github/smok-serwis/flask-requests-logging/badges/issue_count.svg)](https://codeclimate.com/github/smok-serwis/flask-requests-logging)\r\n[![PyPI](https://img.shields.io/pypi/pyversions/flask-requests-logging.svg)](https://pypi.python.org/pypi/flask-requests-logging)\r\n[![PyPI version](https://badge.fury.io/py/flask-requests-logging.svg)](https://badge.fury.io/py/flask-requests-logging)\r\n[![PyPI](https://img.shields.io/pypi/implementation/flask-requests-logging.svg)](https://pypi.python.org/pypi/flask-requests-logging)\r\n[![License](https://img.shields.io/pypi/l/flask-requests-logging)](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.0",
"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": "099a31b108e3124b1639086eb4ae187c402b4512bd21f94a24d0703b1d8e9ea3",
"md5": "dd1fd45248869e681ee8c6030a353b3e",
"sha256": "fa6f9036dccd37829acbfa2967e94c2fc1e2ba4a4530798c28ae6a4681b9fcc8"
},
"downloads": -1,
"filename": "flask_requests_logging-1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "dd1fd45248869e681ee8c6030a353b3e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*",
"size": 4894,
"upload_time": "2024-11-17T19:50:17",
"upload_time_iso_8601": "2024-11-17T19:50:17.668295Z",
"url": "https://files.pythonhosted.org/packages/09/9a/31b108e3124b1639086eb4ae187c402b4512bd21f94a24d0703b1d8e9ea3/flask_requests_logging-1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-17 19:50:17",
"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"
}