Path: | lib/couchrest/middlewares/logger.rb |
Last Update: | Fri Aug 13 03:31:41 -0600 2010 |
USAGE
in your rack.rb file require this file and then:
couch = CouchRest.new LOG_DB = couch.database!(‘couchrest-logger’) use CouchRest::Logger, LOG_DB
Note: to require just this middleware, if you have the gem installed do: require ‘couchrest/middlewares/logger‘
For log processing examples, see examples at the bottom of this file