I've noticed that all the output in my GitHub workflows is being directed to standard error. I'm curious about why this is happening, and if there's any way to change it. Thanks for your help!
5 Answers
If you're running your Docker app in detached mode with `-d` and still checking logs with `docker compose logs`, those are still sent to stderr. That's just how it works.
In most cases, standard output (stdout) is meant for regular app output and results, while errors, logs, and diagnostic info typically go to standard error (stderr). It’s just a default convention in many systems.
If you're looking to modify where your logs are sent, Docker does allow for different log drivers. You can check out the logging options in the Docker documentation to explore that.
Just curious, where would you prefer the logs to go? Seems like stdout could be an option!
Can you share what programming language your service is using and how it's set up? The handling of output might be more of a service configuration issue than a Docker one.

Yeah, stdout would be ideal for my needs.