added logglier gem
This commit is contained in:
parent
21f2f83060
commit
78d1adcfa3
3
Gemfile
3
Gemfile
|
@ -85,7 +85,8 @@ end
|
|||
group :production do
|
||||
gem "airbrake", '~> 3.1.2'
|
||||
gem 'bluepill', '~> 0.0.60', :require => false
|
||||
gem 'le'
|
||||
# gem 'le'
|
||||
gem 'logglier'
|
||||
end
|
||||
|
||||
group :development do
|
||||
|
|
|
@ -177,8 +177,8 @@ GEM
|
|||
jwt (0.1.8)
|
||||
multi_json (>= 1.5)
|
||||
kgio (2.8.0)
|
||||
le (2.2.1)
|
||||
libv8 (3.3.10.4)
|
||||
logglier (0.2.11)
|
||||
macaddr (1.6.1)
|
||||
systemu (~> 2.5.0)
|
||||
mail (2.5.4)
|
||||
|
@ -463,7 +463,7 @@ DEPENDENCIES
|
|||
jbuilder (~> 1.4.2)
|
||||
jquery-rails (~> 2.0.2)
|
||||
js-routes
|
||||
le
|
||||
logglier
|
||||
mailcatcher
|
||||
meta-tags (~> 1.2.5)
|
||||
meta_request
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
require 'le'
|
||||
# require 'le'
|
||||
|
||||
key = APP_CONFIG['keys']['logentries_key']
|
||||
if Rails.env.development?
|
||||
Rails.logger = Le.new key, :debug => true
|
||||
else
|
||||
Rails.logger = Le.new key
|
||||
end
|
||||
# key = APP_CONFIG['keys']['logentries_key']
|
||||
# if Rails.env.development?
|
||||
# Rails.logger = Le.new key, :debug => true
|
||||
# else
|
||||
# Rails.logger = Le.new key
|
||||
# end
|
|
@ -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
|
Loading…
Reference in New Issue