Auditing::Middleware

Provides logging support to middleware.

Installation

Add this line to your application's Gemfile:

gem 'auditing_middleware'

And then execute:

$ bundle

Or install it yourself as:

$ gem install auditing_middleware

Dependencies

Usage

Setting up an Audit Provider

configuration = { "preprefix" => "very important:" }
auditor = SanityAuditor.new
auditor.configure(configuration)
auditor.set_audit_level(:error)

Using Soar Aspect

SoarAspects::Aspects::auditing = auditor

Add support to Rack Middleware

def call(env)
  @app.call(env)
rescue => exception
  Auditing::Middleware.error(exception)
end 

Contributing

Please send feedback and comments to the author at:

Dane-Garrin Balia [email protected]

This gem is sponsored by Hetzner (Pty) Ltd - http://hetzner.co.za

License

The gem is available as open source under the terms of the MIT License.