Repository URL to install this package:
|
Version:
0.0.4 ▾
|
| lib |
| .gitignore |
| CHANGELOG.md |
| Gemfile |
| IMPLEMENTATIONS.md |
| LICENSE.txt |
| README.md |
| Rakefile |
| rogger.gemspec |
TODO: Write a gem description
Add this line to your application's Gemfile:
gem 'rogger'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rogger
To get started
$ rails g rogger:config
To disallow Rogger from logging Rails application level messages, in your generated config/rogger.yml, set
app_logging: false
With the rogger config setup, now you'll want to make sure you're sending your stuff to graylog. To do so, adjust your environments/*.rb file to add the following line:
require 'rogger/config' config.lograge = Rogger::Config.lograge config.logger = Rogger::Config.logger # Use this if you want to continue logging to your local file Rails.logger.extend ActiveSupport::Logger.broadcast(Rogger::Config.file_log)
By default, Rogger will extend itself from Rails logger, meaning that log messages will continue to log to local log files (development.log or production.log). To disable this and make Rogger the only logger, set log_to_file to false.
TODO: Write usage instructions here
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)