How to see log file from node.js server

ken johnson

Jun 3, 2020
San Jose
cPanel Access Level
Website Owner
I want to see the log file from node.js server.

I read your document
"How to Install a Node.js Application

I am using a custom startup file.
I got everything working.

My custom startup file has this line.

PassengerStartupFile "server.js"

I want to see the output from server.js.

I sure wish the following would work,
but it doesn't.
PassengerStartupFile "server.js > log.txt"

Is there something like
PassengerStartupFileParameters "> log.txt"

Do you know some way I can see that log file?