2 years ago

#23273

test-img

Dawn tns

Winston js log files inside a Docker container

I am trying to use winston to write the logs of my node js app inside a file named logs.log which is on my local c:// . Now I'm dockerizing my app in order to deploy it into the production cluster and I have some questions concerning where to set the path for the logs files on the container and how to be able to visualize them.

I'm thinking of creating a /app/logs/logs.log file within my dockerfile using RUN mkdir and set this path in my logger.js but I am not sure whether this is enough or should there be any other configurations to set like the volume mount etc.

node.js

docker

logging

docker-volume

winston

0 Answers

Your Answer

Accepted video resources