Skip to content

Log to stdout in production by default#47138

Merged
dhh merged 5 commits into
mainfrom
log-to-stdout-in-production-by-default
Jan 25, 2023
Merged

Log to stdout in production by default#47138
dhh merged 5 commits into
mainfrom
log-to-stdout-in-production-by-default

Conversation

@dhh

@dhh dhh commented Jan 25, 2023

Copy link
Copy Markdown
Member

Logging to a file doesn't make sense in production any more. You're going to run out of space, and it doesn't play well with containers. Either you log to STDOUT, and let your container setup aggregate the logs, or you'll be switching to syslogger or whatever. You won't be logging to a file in production any more.

David Heinemeier Hansson added 2 commits January 25, 2023 17:51
You're going to run out of space, and it doesn't play well with containers. Either you log to STDOUT, and let your container setup aggregate the logs, or you'll be switching to syslogger or whatever. You won't be logging to a file in production any more.
Comment thread railties/lib/rails/generators/rails/app/templates/Dockerfile.tt Outdated
David Heinemeier Hansson and others added 3 commits January 25, 2023 18:07
@dhh

dhh commented Jan 25, 2023

Copy link
Copy Markdown
Member Author

Unrelated CI failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants