彪马登录到哪里 [英] Where does Puma log to

查看:110
本文介绍了彪马登录到哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Thin运行我的红宝石Sinatra应用程序,但是现在我切换到Puma. Thin创建了自己的日志log/thin.log,供我使用.我注意到Puma不会生成日志文件(不是我所看到的).我曾尝试使用谷歌搜索有关此问题的文档,但并未真正找到任何东西.

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.

我想知道是否/如何在Puma中指定日志路径.

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

任何帮助将不胜感激.

亚历克斯

推荐答案

检查示例 config.rb ,如存储库的 README 上所建议.

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

如图所示:

# 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

这篇关于彪马登录到哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆