Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: e395ceccbc
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (16 sloc) 0.701 kb

rack-detailed_request_logger

  • Logs requests to your RACK app's recording the raw POST, PUT data etc

Install

gem install rack-detailed_request_logger

Usage

 require "rack/detailed_request_logger"

 logger = Logger.new("log/app.log")
 use Rack::DetailedRequestLogger, logger

Sample Output

I, [2010-10-07T10:59:58.072869 #1523]  INFO -- : From IP: 127.0.0.1, To: POST /docs, Raw POST Data: YOYO=KK
I, [2010-10-07T11:00:01.853890 #1523]  INFO -- : From IP: 127.0.0.1, To: GET /docs, Raw POST Data:
I, [2010-10-07T11:02:19.103929 #1523]  INFO -- : From IP: 127.0.0.1, To: PUT /docs, Raw POST Data: name=Matt
Jump to Line
Something went wrong with that request. Please try again.