Skip to content

Instantly share code, notes, and snippets.

@tandibar
Created April 15, 2011 15:00
Show Gist options
  • Save tandibar/921836 to your computer and use it in GitHub Desktop.
Save tandibar/921836 to your computer and use it in GitHub Desktop.
# add this line to the Gemfile
gem "gelf", :git => 'git://github.com/galaxycats/gelf-rb.git' # as long as our changes are not merged
# add this lines to your config
config.logger = GELF::RailsLogger.new("<host>", 12201, "WAN", { :facility => "<app-name>" })
config.logger.level = Logger::INFO
# deactivate colorizing of the log-messages
config.active_record.colorize_logging = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment