Docker Community Forums

Share and learn in the Docker community.

How to instruct docker/docker-compose to treat statement as stderr or stdout?

I have simple docker spring boot application, in that when I am printing System.err.println & System.out.println both are showing as stream:“stdout” in -json.log
Can anybody suggest me how to instruct docker to treat certain message as stderr and others as stdout ?