Skip to content

waynedeng/rails_log_watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rails_log_watcher

== Watch and analyze rails log, mark long time requests and sqls.

== Require Log4R and tested in rails 2 only.

Install

$ sudo gem install log4r
$ sudo gem install rails_log_watcher

Usage

#config/environments/development.rb or production.rb
require "rails_log_watcher"
config.logger = RailsLogWatcher.new(config.log_path)
config.logger.warn_request_secs = 5
config.logger.warn_secs = 2
config.log_level = :debug

#copy log4r.yml to config/log4r.yml

Copyright (c) 2012 MIT-LICENSE

Author : Wayne Deng

Web : http://blog.waynedeng.com

Email : wayne.deng.cn(AT).com

About

Watch and analyze rails log, mark long time requests and sqls.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages