Skip to content

Commit

Permalink
feat: 🎸 Papertrail に送るログカスタマイズのために lograge をインストールした
Browse files Browse the repository at this point in the history
  • Loading branch information
nikukyugamer committed Jun 6, 2021
1 parent 05b170c commit 7f8d4d5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ gem 'bootsnap', require: false
gem 'bugsnag'
gem 'dotenv-rails'
gem 'google-apis-sheets_v4'
gem 'lograge'
gem 'paper_trail'
gem 'pg'
gem 'puma'
Expand Down
6 changes: 6 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ GEM
listen (3.5.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
lograge (0.11.2)
actionpack (>= 4)
activesupport (>= 4)
railties (>= 4)
request_store (~> 1.0)
loofah (2.9.1)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
Expand Down Expand Up @@ -315,6 +320,7 @@ DEPENDENCIES
factory_bot_rails
google-apis-sheets_v4
listen
lograge
paper_trail
pg
pry-rails
Expand Down
2 changes: 2 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ class Application < Rails::Application
config.load_defaults 6.1
config.time_zone = 'Tokyo'
config.api_only = true

config.logger = RemoteSyslogLogger.new('logs.papertrailapp.com', 15515)
end
end

0 comments on commit 7f8d4d5

Please sign in to comment.