README.md in muffin_man-2.1.0 vs README.md in muffin_man-2.1.3

- old
+ new

@@ -54,10 +54,20 @@ JSON.parse(response.body) ``` You can optionally use Amazon's sandbox environment by specifying `client = MuffinMan::Solicitations.new(credentials, sandbox = true)` +### Set Custom Logger + +By default MuffinMan will log to standard out. To customize the logger used: + +```ruby +MuffinMan.configure do |config| + config.logger = Logger.new('log/sp-api.log') +end +``` + ### Access Token Caching You can save and retrieve the LWA refresh token by defining a lambda in your initializers. For example, if you are using Redis as your cache you could define: @@ -91,9 +101,13 @@ resp = JSON.parse(client.get_authorization_code(seller_id, developer_id, mws_auth_token).body) auth_code = resp['payload']['authorizationCode'] # Then query retrieve the refresh token to store refresh_token = MuffinMan::Lwa::AuthHelper.get_refresh_token(CLIENT_ID, CLIENT_SECRET, auth_code) ``` + +### Debugging + +To use Typheous' verbose mode set env variable `MUFFIN_MAN_DEBUG=true` ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/patterninc/muffin_man. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/patterninc/muffin_man/blob/master/CODE_OF_CONDUCT.md).