Ruby on Rails logger - not recording all information #4510
Labels
api: logging
Issues related to the Cloud Logging API.
type: question
Request for information or clarification. Not an issue.
Is your feature request related to a problem? Please describe.
When using GCP logging, with our production mode rails application, we only get one line of logging per http request. In the default rails log file, there will be multiple lines per request.
This is important, because much of the information is lost when only the first line is logged
Describe the solution you'd like
I would like to see all the data which Rails logs to be availalble in Google Logging.
Describe alternatives you've considered
We have a temporary workaround, which is to include the following in our Rails application.rb file. This allows us to see the request params.
The other alternative we have considered is not using centralised logging (but this isnt really practical).
Additional context
Ruby on Rails 5.2.4, Ruby 2.6.5
The text was updated successfully, but these errors were encountered: