Where does Puma log to

独自空忆成欢 提交于 2019-12-12 10:30:55

问题


I have been using Thin to run my ruby Sinatra applications but I am now switching over to Puma. Thin creates its own log log/thin.log which I use. I noticed that Puma doesn't produce a log file (not that I can see). I have tried googling for documentation around this but not really found anything.

I was wondering if/how you can specify a log path in Puma.

Any help would be much appreciated.

Alex


回答1:


Check the example config.rb as recommended on the repo's README.

As shown there:

# Redirect STDOUT and STDERR to files specified. The 3rd parameter
# (“append”) specifies whether the output is appended, the default is “false”.


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


来源:https://stackoverflow.com/questions/22119574/where-does-puma-log-to

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!