This pr adds an optional config variable path that is boolean so that instead of logging requests controller#action, you can specify that you want to log ENV['PATH_INFO'] instead.
So you just do Rails.application.middleware.use( Oink::Middleware, :path => true ) and then oink will log "Oink Path: /no_pigs" instead of "Oink Action: oinkoink#piggie"
This pr adds an optional config variable
path
that is boolean so that instead of logging requestscontroller#action
, you can specify that you want to logENV['PATH_INFO']
instead.So you just do
Rails.application.middleware.use( Oink::Middleware, :path => true )
and then oink will log"Oink Path: /no_pigs"
instead of"Oink Action: oinkoink#piggie"
Thanks