Logging additional info in `flyctl logs` output

Two logging questions…

  1. Is there a way to include my server’s logs (Ruby on Rails 7 writes them to /app/logs/production.log) in the output of flyctl logs?
  2. Is there a reason not to do this? (Why doesn’t it happen by default?)

Also, if anyone has recommendations for a logger good for a hobby app (decent size free tier, cheap if I go a little over, like fly.io :slight_smile:), ideally one supported by fly-log-shipper, I’d love to hear one

You can set this in fly.toml:

[env]
  RAILS_LOG_TO_STDOUT = "true"

Check that this value is used in config/production.rb as well!