Skip to content
This repository has been archived by the owner. It is now read-only.
This repository has been archived by the owner. It is now read-only.

Logs go to a file instead of STDOUT #33

@md5

Description

@md5

I hadn't played around much with the rails image before this week, but I noticed that the logs are be written to the default logs/#{Rails.env}.log file instead of STDOUT.

I think the fix will need to be made for each app that is based on this image (or pretty much any other Dockerized Rails app), so I don't think there's anything to be done in the image itself. I believe the only thing that should be done is to document the issue over at docker-library/docs, so let me know if I should have opened the issue there. At least having the issue in this repo will help people find it if they search for the problem.

The Rails docs show a quick & dirty approach to logging to STDOUT: http://guides.rubyonrails.org/debugging_rails_applications.html#the-logger

There are also things like Heroku's rails_stdout_logging gem: https://github.com/heroku/rails_stdout_logging

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions