mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 11:39:07 +01:00
Install and configure lograge
This commit is contained in:
parent
058b171915
commit
800958e88f
3 changed files with 15 additions and 0 deletions
4
Gemfile
4
Gemfile
|
@ -101,6 +101,10 @@ group :development, :test do
|
||||||
gem "timecop"
|
gem "timecop"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
group :production do
|
||||||
|
gem "lograge"
|
||||||
|
end
|
||||||
|
|
||||||
gem "webpacker", "~> 5.2"
|
gem "webpacker", "~> 5.2"
|
||||||
|
|
||||||
gem "omniauth-rails_csrf_protection", "~> 1.0"
|
gem "omniauth-rails_csrf_protection", "~> 1.0"
|
||||||
|
|
|
@ -314,6 +314,11 @@ GEM
|
||||||
listen (3.7.0)
|
listen (3.7.0)
|
||||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||||
rb-inotify (~> 0.9, >= 0.9.10)
|
rb-inotify (~> 0.9, >= 0.9.10)
|
||||||
|
lograge (0.11.2)
|
||||||
|
actionpack (>= 4)
|
||||||
|
activesupport (>= 4)
|
||||||
|
railties (>= 4)
|
||||||
|
request_store (~> 1.0)
|
||||||
loofah (2.13.0)
|
loofah (2.13.0)
|
||||||
crass (~> 1.0.2)
|
crass (~> 1.0.2)
|
||||||
nokogiri (>= 1.5.9)
|
nokogiri (>= 1.5.9)
|
||||||
|
@ -445,6 +450,8 @@ GEM
|
||||||
redis (4.1.4)
|
redis (4.1.4)
|
||||||
regexp_parser (2.2.0)
|
regexp_parser (2.2.0)
|
||||||
remotipart (1.4.4)
|
remotipart (1.4.4)
|
||||||
|
request_store (1.5.1)
|
||||||
|
rack (>= 1.4)
|
||||||
responders (3.0.1)
|
responders (3.0.1)
|
||||||
actionpack (>= 5.0)
|
actionpack (>= 5.0)
|
||||||
railties (>= 5.0)
|
railties (>= 5.0)
|
||||||
|
@ -647,6 +654,7 @@ DEPENDENCIES
|
||||||
jbuilder (~> 2.10)
|
jbuilder (~> 2.10)
|
||||||
jwt (~> 2.3)
|
jwt (~> 2.3)
|
||||||
letter_opener
|
letter_opener
|
||||||
|
lograge
|
||||||
mini_magick
|
mini_magick
|
||||||
omniauth
|
omniauth
|
||||||
omniauth-rails_csrf_protection (~> 1.0)
|
omniauth-rails_csrf_protection (~> 1.0)
|
||||||
|
|
|
@ -49,6 +49,9 @@ Rails.application.configure do
|
||||||
# Prepend all log lines with the following tags.
|
# Prepend all log lines with the following tags.
|
||||||
config.log_tags = [ :request_id ]
|
config.log_tags = [ :request_id ]
|
||||||
|
|
||||||
|
# Better log formatting
|
||||||
|
config.lograge.enabled = true
|
||||||
|
|
||||||
# Use a different cache store in production.
|
# Use a different cache store in production.
|
||||||
# config.cache_store = :mem_cache_store
|
# config.cache_store = :mem_cache_store
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue