I want to direct error_log and access_log in php.ini to stdout. My OS is windows 10. Is it possible?
To output logs in docker, write them to /dev
IE:
error_log /dev/stderr
Cheers!
Note that, when it comes to the official php
Docker image , action is no longer required:
php:<version>-apache
, error logs are automatically redirected to /dev/stderr
.php:<version>-fpm
, error logs are automatically redirected to /proc/self/fd/2
. This has the same effect as above, but with a few less layers of indirection .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.