sebastianbergmann / phploc

A tool for quickly measuring the size of a PHP project.
BSD 3-Clause "New" or "Revised" License
2.34k stars 167 forks source link

log to stdout #214

Closed titomiguelcosta closed 4 years ago

titomiguelcosta commented 4 years ago

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?