Search code examples
node.jsforever

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?


Solution

  • 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 start -o out.log -e err.log my-script.js
    

    See here for more info