Skip to content
Better log4r for rails
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
examples
lib
rails_test
spec
.gitignore
.travis.yml
LICENSE.bsd
README.md
log4rails.gemspec

README.md

Build Status Gem Version Code Climate Test Coverage

Log4r - A flexible logging library for Ruby

Log4rails - A better log4r especially for rails

gem install log4rails

Document is also available at Rubydoc

DO NOT USE THIS TOGETHER WITH log4r!

config.log4rails.<option> = <value>
# enable log4rails integration
config.log4rails.enabled = true
# maximum action handling time to log with level INFO, default: 500ms.
config.log4rails.action_mht = 500
# auto-reload log4r configuration file from config/log4r.yaml (or config/log4r-production.yaml in production environment)
config.log4rails.auto_reload = true

Why this fork

Log4r seems not to be actively maintained. And also I need these features:

  • Integrate with the latest rails
  • Reload the configuration file in production mode in order to switch ON/OFF logs
  • Better RollingFileOutputter, etc.

TODO

  • Better integrate with rails
  • Write more tests
  • Document is important, especially since rubyforge is dead
  • Refactor
  • Fix issues for general usage
  • Improve extensibility

You're welcome to contribute!

You can’t perform that action at this time.