Azat Nugusbayev
Azat Nugusbayev

Reputation: 1421

how to make my program write logs with forever

I have a bash script, where I start my node.js program with

node app/index.js > logs/QueueLog.out. It works fine and writes logs to logs/QueueLog.out file.

But when I run it with forever

forever start app/index.js > logs/QueueLog.out

it does not write logs. What is wrong?

Upvotes: 1

Views: 52

Answers (1)

BlackMamba
BlackMamba

Reputation: 10252

Please try to use these options:

 -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

Here is the link: https://github.com/foreverjs/forever

Upvotes: 1

Related Questions