Does the forever log file contain either STDOUT or STDERR content?

I am running the process through forever , however I am confused about using -l , -o and -e .

From the documentation:

 -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 

Can anyone confirm that the output to LOGFILE (-l) includes both stdout and stderr along with eternal messages (for example, "retarting forever").

If so, I am right in assuming that -o and -e ONLY if you want to send stdout / stderr to different locations; and if you want everything in one log file -l be the only parameter you need to specify?

+6
source share
2 answers

Yes, the -l LOGFILE generates a log file with the combined output of forever, stdOut and stdErr from the child process.

I would like the output to be just written forever to this file if you use the -o OUTFILE and -e ERRFILE , because it looks like duplication.

+9
source

forever start script.js

↓

forever logs script.js -f

0
source

All Articles