Puma在哪里登录
我一直在使用Thin运行我的ruby Sinatra应用程序,但我现在转向Puma。 Thin创建了我自己使用的log log/thin.log
。 我注意到Puma没有生成日志文件(不是我能看到的)。 我已经尝试使用谷歌搜索文档,但没有找到任何东西。
我想知道是否/如何在Puma中指定日志路径。
任何帮助将非常感激。
亚历克斯
按照repo的README上的建议检查示例config.rb 。
如图所示:
# 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