8

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)?

hiroprotagonist
  • 902
  • 1
  • 11
  • 24

2 Answers2

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
  • 2
    if 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