Merge pull request #138 from zach-chai/logging

add condensed logging
This commit is contained in:
Zachary Chai 2017-03-02 10:49:51 -05:00 committed by GitHub
commit 66535e6881
3 changed files with 15 additions and 0 deletions

View File

@ -49,6 +49,11 @@ group :development do
gem 'spring-watcher-listen', '~> 2.0.0'
end
group :production do
# For more condensed logging
gem "lograge"
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

View File

@ -91,6 +91,10 @@ GEM
listen (3.0.8)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
lograge (0.4.1)
actionpack (>= 4, < 5.1)
activesupport (>= 4, < 5.1)
railties (>= 4, < 5.1)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.4)
@ -223,6 +227,7 @@ DEPENDENCIES
jquery-rails
jquery-ui-rails
listen (~> 3.0.5)
lograge
omniauth (= 1.3.1)
omniauth-google-oauth2 (= 0.4.1)
omniauth-twitter (= 1.2.1)

View File

@ -0,0 +1,5 @@
Rails.application.configure do
if Rails.env.production?
config.lograge.enabled = ENV['ENABLE_CONDENSED_LOGGING'].present?
end
end