Where does forever store console.log output?
if you run the command "forever logs", you can see where are the logs files.
Source: https://github.com/foreverjs/forever
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
try the command
> forever logs
or
> sudo forever logs
you will get the log file's location
Forever, by default, will put logs into a random file in ~/.forever/
folder.
You should run forever list
to see the running processes and their corresponding log file.
Sample output
>>> forever list
info: Forever processes running
data: uid command script forever pid logfile uptime
data: [0] 6n71 /usr/bin/node app.js 2233 2239 /home/vagrant/.forever/6n71.log 0:0:0:1.590
However, it's probably best to specify with -l
as mentioned by bryanmac.