added logglier gem

This commit is contained in:
Vokhmin Alexey V 2013-11-07 01:22:13 +04:00
parent 21f2f83060
commit 78d1adcfa3
4 changed files with 16 additions and 10 deletions

View File

@ -85,7 +85,8 @@ end
group :production do group :production do
gem "airbrake", '~> 3.1.2' gem "airbrake", '~> 3.1.2'
gem 'bluepill', '~> 0.0.60', :require => false gem 'bluepill', '~> 0.0.60', :require => false
gem 'le' # gem 'le'
gem 'logglier'
end end
group :development do group :development do

View File

@ -177,8 +177,8 @@ GEM
jwt (0.1.8) jwt (0.1.8)
multi_json (>= 1.5) multi_json (>= 1.5)
kgio (2.8.0) kgio (2.8.0)
le (2.2.1)
libv8 (3.3.10.4) libv8 (3.3.10.4)
logglier (0.2.11)
macaddr (1.6.1) macaddr (1.6.1)
systemu (~> 2.5.0) systemu (~> 2.5.0)
mail (2.5.4) mail (2.5.4)
@ -463,7 +463,7 @@ DEPENDENCIES
jbuilder (~> 1.4.2) jbuilder (~> 1.4.2)
jquery-rails (~> 2.0.2) jquery-rails (~> 2.0.2)
js-routes js-routes
le logglier
mailcatcher mailcatcher
meta-tags (~> 1.2.5) meta-tags (~> 1.2.5)
meta_request meta_request

View File

@ -1,8 +1,8 @@
require 'le' # require 'le'
key = APP_CONFIG['keys']['logentries_key'] # key = APP_CONFIG['keys']['logentries_key']
if Rails.env.development? # if Rails.env.development?
Rails.logger = Le.new key, :debug => true # Rails.logger = Le.new key, :debug => true
else # else
Rails.logger = Le.new key # Rails.logger = Le.new key
end # end

View File

@ -0,0 +1,5 @@
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