Skip to main content

Wrapper around Requests to add logging

Project description

[![PyPI](https://img.shields.io/pypi/v/requests_logger.svg?style=flat-square)](https://pypi.python.org/pypi/requests_logger) [![Travis](https://img.shields.io/travis/mdmedley/requests_logger.svg?style=flat-square)](https://travis-ci.org/mdmedley/requests_logger)

# Requests Logging

This package is a wrapper around Requests to log http request in a human readable format.

### Version
v0.0.3


### Installation
```sh
pip install requests_logger
```


### Quickstart
```python
import logging
from requests_logger import LoggingRequests

logger = logging.getLogger('my_logger')
# Setup logger how you see fit

req = LoggingRequests(logger)
req.request('GET', 'http://google.com')
```


### Development
Want to contribute? Great! Fork and submit a pull request!


### Todos

- Format json and xml request/response bodies
- Rename package (maybe)
- Rename Class (maybe)
- Write more tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

requests_logger-0.0.3.tar.gz (1.9 kB view hashes)

Uploaded Source

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