I can’t find a place where nodejs log file is stored.
Because in my node server I have “Segmentation fault”, I want to look at log file for additional info…
I can’t find a place where nodejs log file is stored. Because in my
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no log file. Each node.js “app” is a separate entity. By default it will log errors to STDERR and output to STDOUT. You can change that when you run it from your shell to log to a file instead.
Alternatively (recommended), you can add logging inside your application either manually or with one of the many log libraries: