public
Description: A Rails plugin that uses CouchDB to store app logs rather than the standard log files.
Homepage:
Clone URL: git://github.com/ads/couchlog.git
name age message
file MIT-LICENSE Tue Sep 22 19:20:40 -0700 2009 Get a preliminary plugin working with hard-code... [Robert Dempsey]
file README.rdoc Fri Oct 30 10:50:44 -0700 2009 Fixing repository url [tapajos]
file Rakefile Tue Sep 22 19:20:40 -0700 2009 Get a preliminary plugin working with hard-code... [Robert Dempsey]
file couchlog.yml.sample Tue Sep 29 09:04:07 -0700 2009 Adding couch_log.rb copy to 'lib' folder [baldrailers]
directory generators/ Tue Sep 22 19:20:40 -0700 2009 Get a preliminary plugin working with hard-code... [Robert Dempsey]
file init.rb Tue Sep 22 19:20:40 -0700 2009 Get a preliminary plugin working with hard-code... [Robert Dempsey]
file install.rb Tue Sep 29 09:04:07 -0700 2009 Adding couch_log.rb copy to 'lib' folder [baldrailers]
directory lib/ Tue Sep 29 09:04:07 -0700 2009 Adding couch_log.rb copy to 'lib' folder [baldrailers]
directory rails/ Tue Sep 22 19:20:40 -0700 2009 Get a preliminary plugin working with hard-code... [Robert Dempsey]
directory tasks/ Tue Sep 22 19:20:40 -0700 2009 Get a preliminary plugin working with hard-code... [Robert Dempsey]
directory test/ Tue Sep 22 19:20:40 -0700 2009 Get a preliminary plugin working with hard-code... [Robert Dempsey]
file uninstall.rb Tue Sep 22 19:20:40 -0700 2009 Get a preliminary plugin working with hard-code... [Robert Dempsey]
README.rdoc

CouchLog

CouchLog is a Ruby on Rails plugin that stores all of your app’s log data in CouchDB.

Warning

This plugin is currently under development.

Requirements

Rails >= 2.3.2

CouchDB >= 0.9.1

Helpful Links

Install & Use

Install CouchDB on a server that your application has access to.

Install the current version of the plugin:

  script/plugin install git://github.com/ads/couchlog.git

Install the couchrest gem

Require CouchLog in your config before the initializer:

  # config/environment.rb
  require 'couch_log'

Set the level of logging that you want for your app inside of the initializer:

  config.log_level = ENV['RAILS_ENV']=='production' ?
                                 ActiveSupport::BufferedLogger::Severity::INFO :
                                 ActiveSupport::BufferedLogger::Severity::DEBUG

Just below config.log_level, Initialize the plugin:

  config.logger = CouchLog.new(config.log_path, config.log_level)

Set the location of the database in the config file

  #config/couchlog.yml
  server = YOUR_SERVER_HERE

Copyright & License

Copyright © 2009 Robert Dempsey, released under the MIT license.

Thanks to the code provided by bikethetam on the UbuntuSolutions blog