Path: | lib/couchrest/middlewares/logger.rb |
Last Update: | Thu May 02 12:36:01 +0000 2013 |
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