Hey, I am planning to use App platform to host my backend but I wanted to know if each container in App platform would have a different log file (assuming I’m logging into files with Winston) and if this is the case would this even be an issue. I thought of multiple solutions in case I should handle this: 1- Log into the database 2- Make another container that expects to get the logs through HTTP from the other running containers
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hey there!
Each component in App Platform should have its own logs. However the logs saved using Winston for each container would be saved by default to the filesystem there. On each redeploy they would be lost due to the ephemeral nature of App Platform’s disk. I’d recommend saving those to an external source like a database or another file service like Spaces.
Hope it helps! Nate
I am planning to use the Digital Ocean App Platform to host my backend but I wanted to know if each container in App platform would have a different log file (assuming I’m logging into files with Winston) and if this is the case would this even be an issue. I thought of multiple solutions in case I should handle this: 1- Log into the database 2- Make another container that expects to get the logs through HTTP from the other running containers