Project

ledis

0.0
No commit activity in last 3 years
No release in over 3 years
a K.I.S.S auto-rotating redis logger for ruby/rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 6.0.1
>= 2.2.2
 Project Readme

NAME

ledis

SYNOPSIS

a K.I.S.S auto-rotating redis logger for ruby/rails

Ruby

redis = Redis.new

logger = Ledis.logger redis

logger = Ledis.new

logger = Ledis.new do |config|

  config.redis = Redis.new

  config.list = 'teh_foo:log'

  config.cap = 2 ** 16

end

Rails

### file: config/environments/development.rb

config.logger = Ledis.logger do |logger|

  logger.list = "teh_rails_app:#{ Rails.env }:log"

end

DESCRIPTION

ledis logs yo shiznit to redis. it's got built in logic to auto-truncate logs when they get to big

logger.truncate(2 **16)

and to grab the most recent ones

puts logger.tail(1024)

it's list/line oriented, just like a log file and makes no attempt to annotated log lines or add fancy data structures to them

INSTALL

gem 'ledis'