CouchLog is a Ruby on Rails plugin that stores all of your app’s log data in CouchDB.
This plugin is currently under development.
Rails >= 2.3.2
CouchDB >= 0.9.1
-
Documentation: rdoc.info/projects/rdempsey/CouchLog
-
Repository: github.com/rdempsey/CouchLog/tree/master
-
CouchDB: couchdb.apache.org/
-
CouchDBX: janl.github.com/couchdbx/
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 © 2009 Robert Dempsey, released under the MIT license.
Thanks to the code provided by bikethetam on the UbuntuSolutions blog