As I understand it, logs do not get garbage collected in node.js, so an app which is doing a lot of logging can potentially lead to memory exhaustion.
Does the logging facility of pm2 however alter that? ie, If I'm running a node.js script under pm2 spewing out tons of console.log(messages), does pm2 'intercept' them, presumably freeing it from memory and writing it to a file, or does it simply observe stdout & stderr and copy new lines into their respective out/error .pm2/logs file?