Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/petems/faraday-scrublogs

Faraday middleware for removing sensitive data from the faraday logs
https://github.com/petems/faraday-scrublogs

Last synced: 7 days ago
JSON representation

Faraday middleware for removing sensitive data from the faraday logs

Awesome Lists containing this project

README

        

# Faraday::Scrublogs

[![Build Status](https://travis-ci.org/petems/faraday-scrublogs.png?branch=master)](https://travis-ci.org/petems/faraday-scrublogs)

Faraday Middleware to scrub logs of sensitive information

Currently this is a fork from 'Faraday::Conductivity' that heavily modifies it for my needs...

Further information:

* [faraday](https://github.com/lostisland/faraday)
* [faraday_middleware](https://github.com/lostisland/faraday_middleware)

## Installation

Add this line to your application's Gemfile:

``` ruby
gem 'faraday-scrublogs'
```

And then execute:

```
$ bundle
```

Or install it yourself as:

```
$ gem install Faraday::Conductivity
```

## Usage

### Scrub Logs

Removes whatever you specify to remove from logs via regex

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request