If you are using VSCode, you can run VSCode inside a container. Otherwise, most people run the code environment outside a container.
Also, read 12 Factor, logging to a file is wrong. Logs go to standard out.
Also, read 12 Factor, logging to a file is wrong. Logs go to standard out.