Aw Qirui Guo Aw Qirui Guo - 1 year ago 155
Node.js Question

Where does forever store console.log output?

I installed forever and am using it, finding it quite funny.

But I realized that the logs are placed to somewhere else. Is there any tips?

Answer Source

Forever takes command line options for output:

-l  LOGFILE      Logs the forever output to LOGFILE
-o  OUTFILE      Logs stdout from child script to OUTFILE
-e  ERRFILE      Logs stderr from child script to ERRFILE

For example:

forever -o out.log -e err.log my-script.js

See here for more info