i want my RoR/puma logs to just go to stdout instead of a log file. is it as simple as removing the stdout_redirect
line from my puma configs (aka, puma.rb
)?
Asked
Active
Viewed 7,557 times
8

hiroprotagonist
- 902
- 1
- 11
- 24
-
1Literally yes, if you want `puma`'s log output, not `rails`' one. – x-yuri Nov 24 '17 at 12:37
2 Answers
0
If you are running Rails 5, just set RAILS_LOG_TO_STDOUT=1 from command line

Xiaohui Zhang
- 985
- 8
- 12
-2
Check the example config file https://github.com/puma/puma/blob/master/examples/config.rb#L49
go and find /u/apps/lolcat/log/stderr
true or false if false make as true
stdout_redirect '/u/apps/lolcat/log/stdout', '/u/apps/lolcat/log/stderr'
stdout_redirect '/u/apps/lolcat/log/stdout', '/u/apps/lolcat/log/stderr', true

JohnPaul
- 714
- 5
- 14
-
2if i am reading this correctly, setting the 3rd parameter to true just makes the output appended ... but like it will still write the files specified in the 1st two parameters. i need this to just output to stdout – hiroprotagonist Jul 12 '16 at 18:06