How to generate PHP web application output to docker stdout? #296
Answered
by
shinsenter
Commifreak
asked this question in
Q&A
-
|
Hi, is it possible to send some output to the docker containers stdout/stderr to be visible inside docker log for this container? Am I abel to write to /proc/1/fd/2 or something similar? |
Beta Was this translation helpful? Give feedback.
Answered by
shinsenter
Jul 31, 2025
Replies: 1 comment 7 replies
-
|
@Commifreak Hi. I'm not sure which tag of the Docker images you're using. By default, logs are sent directly to docker logs, so I don't think any additional configuration is needed. By the way, are you referring to logs from a specific program or task? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't think this is an issue specific to the Docker images I provide. You can check Google for related issues, or for more solutions.
https://stackoverflow.com/questions/56583510/why-cant-i-write-to-dev-stdout-but-php-stdout-works
You may try using error_log to send the log to PHP's system logger.