Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
  lib
  .gitignore
  CHANGELOG.md
  Gemfile
  IMPLEMENTATIONS.md
  LICENSE.txt
  README.md
  Rakefile
  rogger.gemspec
Size: Mime:
  README.md

Rogger

TODO: Write a gem description

Installation

Add this line to your application's Gemfile:

gem 'rogger'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rogger

Usage

To get started

$ rails g rogger:config

Disable application-level logging

To disallow Rogger from logging Rails application level messages, in your generated config/rogger.yml, set

  app_logging: false

Setup logging

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)

Disable local file logging (deprecated)

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

Contributing

  1. Fork it ( https://github.com/[my-github-username]/rogger/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request