Merge branch 'master' of github.com:ridiculous/grape-middleware-logger

This commit is contained in:
Ryan Buckley 2015-12-15 22:26:34 -08:00
commit ac4e3225df
1 changed files with 9 additions and 2 deletions

View File

@ -1,8 +1,15 @@
# Grape::Middleware::Logger
# A logger for Grape apps
[![Code Climate](https://codeclimate.com/github/ridiculous/grape-middleware-logger/badges/gpa.svg)](https://codeclimate.com/github/ridiculous/grape-middleware-logger) [![Gem Version](https://badge.fury.io/rb/grape-middleware-logger.svg)](http://badge.fury.io/rb/grape-middleware-logger)
[![Build Status](https://travis-ci.org/ridiculous/grape-middleware-logger.svg)](https://travis-ci.org/ridiculous/grape-middleware-logger)
Simple logger for Grape apps. Logs request path, parameters, status and time taken. Also logs exceptions and error responses (thrown by `error!`).
Logs:
* Request path
* Parameters
* Endpoint class name and handler
* Response status
* Duration of the request
* Exceptions
* Error responses from `error!`
## Installation