I'm running node app under forever in a docker container, how do I get all console.log output to show up on the console? I'm a beginner to docker so I assume the best way to log with docker is to simply log to stdout. If there's a better more proper way to do this I'm open to alternative solutions.
forever
, like standard node
, simply logs to stdout as well so you shouldn't have to do anything special. Of course, if you start your container with docker run -d
you'll have to run docker logs -f myNodeContainer
to actually see the output live.