2014-03-01 67 views
7

我一直在使用Thin來運行我的紅寶石Sinatra應用程序,但我現在正在切換到Puma。 Thin創建了我自己使用的日誌log/thin.log。我注意到Puma不會生成日誌文件(不是我能看到的)。我試着圍繞這個文檔搜索Google,但沒有發現任何東西。Puma登錄到

我想知道如何/如何在Puma中指定日誌路徑。

任何幫助將不勝感激。

亞歷

回答

10

檢查例子config.rb建議在回購的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