From 935c7a7c4707fe038d2e0e86f15ddbfcbb1917dd Mon Sep 17 00:00:00 2001 From: Ryan Buckley Date: Tue, 15 Dec 2015 19:22:59 -0800 Subject: [PATCH 1/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d22a8d2..682e9af 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# 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 the request path, endpoint name, parameters, response status and duration. Exceptions and `error!` responses are logged as well. ## Installation From b2182659148078b8b348bfdb5f80ecbd0138d8a1 Mon Sep 17 00:00:00 2001 From: Ryan Buckley Date: Tue, 15 Dec 2015 19:35:48 -0800 Subject: [PATCH 2/2] Update README.md --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 682e9af..7c631fb 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,14 @@ [![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) -Logs the request path, endpoint name, parameters, response status and duration. Exceptions and `error!` responses are logged as well. +Logs: + * Request path + * Parameters + * Endpoint class name and handler + * Response status + * Duration of the request + * Exceptions + * Error responses from `error!` ## Installation