No commit activity in last 3 years
No release in over 3 years
Almaz is a ruby rack middleware redis logger
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
>= 0
 Project Readme

Almaz

Almaz is always watching!

Explanation

Almaz is rack middlware which logs request information to a redis server, under a preset user session variable.

Example

Almaz::Capture

  
    require 'almaz'

    use Almaz::Capture
  
    Almaz.config[:redis] = {:db => 0, :host => 'localhost', :port => 6379} # this is also the default
    Almaz.config[:session_variable] = :user #this is also the default
  

By using Almaz::Capture and setting the session_variable to :user, all requests are now logged under ‘almaz::user::(session[:user])’ in redis. Each user gets a separate list in the redis DB. All requests that don’t have the session variable :user are logged under ‘almaz::user::’.