facebook / facebook/hhvm

hhvm.log.use_log_file = false doesn't send log to stderr

未關閉
#4,480 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
ini
主要語言
C++
星號
18.7k
分支
3.1k
平均合併
1 小時 47 分鐘
30 天內合併 PR
2

描述

@JoelMarcey: here's the issue you requested on IRC.

What happens for me is that the setting

`hhvm.log.use_log_file = false`

doesn't lead to the hhvm log being printed to stderr. Running hhvm version:

`# php -v
HipHop VM 3.4.0 (rel)
Compiler: tags/HHVM-3.4.0-0-g817b3a07fc4e509ce15635dbc87778e5b3496663
Repo schema: 0e12aaa31fae66b5591f65603de50c9d62caafac
Extension API: 20140829`

Invoking as `hhvm -m server ...` (with `hhvm.server.type = fastcgi` configured in .ini).

Workaround for me for now, as suggested in IRC by Fred is to set:

`hhvm.log.use_log_file = true
hhvm.log.file = /dev/stderr`

(And just so people googling about this might find this: My use case was specifically about getting logs to stdout/stderr from hhvm fcgi for use with docker logging.)

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。