rosa-build/config/initializers/logglier.rb

5 lines
182 B
Ruby

require 'logglier'
if Rails.env.production?
Rails.logger = Logglier.new("https://logs-01.loggly.com/inputs/#{APP_CONFIG['keys']['logglier_key']}/tag/ruby/", :threaded => true)
end