Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does 'forever' log file include both STDOUT and STDERR content?

I'm running a process via forever, however I'm confused about the usage of -l, -o and -e options.

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 someone confirm if the output to LOGFILE (-l) includes both stdout & stderr, along with forever messages (e.g. 'retarting forever').

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

like image 881
isNaN1247 Avatar asked Mar 22 '13 15:03

isNaN1247


1 Answers

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

I wish there was a way to have just the forever output be logged to this file if you use the -o OUTFILE and -e ERRFILE options because it seems like duplication.

like image 134
Johno Scott Avatar answered Sep 21 '22 23:09

Johno Scott