console.log does not appear with pm2

0

I have a node.js Parse Server app where I need to use console.log to debug the cloud code, the problem is that by launching the app like this:

node index.js

the log appears, but if I launch it with pm2:

pm2 start index.js

the logs of console.log do not appear but if the native parse logs appear, (in the previous case they both appear)

Any ideas? Thanks

    
asked by Pablo Cegarra 31.07.2017 в 20:55
source

1 answer

1

After the application has started:

pm2 logs <app-name>

All the details in the documentation .

    
answered by 31.07.2017 / 22:32
source