I have my ReactJS and NodeJS/ExpressJS project up and running inside an instance. If there were to be a problem/error while the NodeJS is running, is there a way to report/write to a file in a particular directory to keep track of all the server issues?
For example, if it were to crash, it would write the error/issue to a file, so error logging to a file.
Thank you in advance and will accept/upvote answer.