ConciseLogging
Alternate logging for Rails production servers
Installation
Add this line to your application's Gemfile:
gem 'concise_logging'
And then execute:
$ bundle
Or install it yourself as:
$ gem install concise_logging
Usage
Add this to your config/production.rb. Configure tagging as per your desires.
config.middleware.use "ConciseLogging::LogMiddleware"
ConciseLogging::LogSubscriber.attach_to :action_controller
config.log_level = :warn
config. = ["cv-#{Rails.env[0]}"]
config.logger = ActiveSupport::TaggedLogging.new(ActiveSupport::Logger.new(File.join(Rails.root, "log", "#{Rails.env}.log")))
Contributing
- Fork it ( https://github.com/[my-github-username]/concise_logging/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request