diff --git a/Gemfile b/Gemfile index e99cfc14a..1153e2053 100644 --- a/Gemfile +++ b/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 diff --git a/Gemfile.lock b/Gemfile.lock index b57d8702b..b80e21862 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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 diff --git a/config/initializers/logentries.rb b/config/initializers/logentries.rb index 7749d29f5..a7d195dda 100644 --- a/config/initializers/logentries.rb +++ b/config/initializers/logentries.rb @@ -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 \ No newline at end of file +# key = APP_CONFIG['keys']['logentries_key'] +# if Rails.env.development? +# Rails.logger = Le.new key, :debug => true +# else +# Rails.logger = Le.new key +# end \ No newline at end of file diff --git a/config/initializers/logglier.rb b/config/initializers/logglier.rb new file mode 100644 index 000000000..e0e33b144 --- /dev/null +++ b/config/initializers/logglier.rb @@ -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 \ No newline at end of file