Skip to content
/ couchlog Public

A Rails plugin that uses CouchDB to store app logs rather than the standard log files.

License

Notifications You must be signed in to change notification settings

ads/couchlog

Repository files navigation

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

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

About

A Rails plugin that uses CouchDB to store app logs rather than the standard log files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages