Skip to content

Commit

Permalink
Update appsignal.md
Browse files Browse the repository at this point in the history
  • Loading branch information
schmijos authored Jun 19, 2024
1 parent e86e700 commit 923275f
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions ruby_on_rails/appsignal.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,20 @@ end
### Without AppSignal gem

```ruby
if ENV['RAILS_LOG_TO_STDOUT'].present?
config.log_tags = [->(request) { { request_id: request.request_id } }]
logger = ActiveSupport::Logger.new($stdout)
config.logger = ActiveSupport::TaggedLogging.new(logger)
end
# config/environments/production.rb
Rails.application.configure do
if ENV['LOGRAGE_ENABLED'] == 'true'
config.lograge.enabled = true
config.lograge.keep_original_rails_log = true
if ENV['RAILS_LOG_TO_STDOUT'].present?
config.log_tags = [->(request) { { request_id: request.request_id } }]
logger = ActiveSupport::Logger.new($stdout)
config.logger = ActiveSupport::TaggedLogging.new(logger)
end
if ENV['LOGRAGE_ENABLED'] == 'true'
config.lograge.enabled = true
config.lograge.keep_original_rails_log = true
end
end
```

Expand Down

0 comments on commit 923275f

Please sign in to comment.