sebastianbergmann/phploc

log to stdout

titomiguelcosta opened this issue · 0 comments

At the moment, there are options to log to a file. It would be great if we could redirect directly to stdout. I can achieve it by doing

$ phploc --log-json=/dev/stdout -q src

but it fails inside a docker container,

Warning: file_put_contents(/dev/stdout): Failed to open stream: No such file or directory in vendor/phploc/phploc/vendor/phploc/phploc/src/Log/Json.php on line 39

Any ideas of how I can achieve it?