facebook / facebook/hhvm

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

Open
#4,480 1 comment 0 reactions 0 assignees View on GitHub
ini
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

@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.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.