If I had three services (A, B, C)
ββββββββββββ¬βββββ¬βββββββ¬ββββββββ¬βββββββββ¬ββββββββββ¬βββββββββ¬ββββββ¬ββββββββββββ¬ββββββββ¬βββββββββββ
β App name β id β mode β pid β status β restart β uptime β cpu β mem β user β watching β
ββββββββββββΌβββββΌβββββββΌββββββββΌβββββββββΌββββββββββΌβββββββββΌββββββΌββββββββββββΌββββββββΌβββββββββββ€
β A β 0 β fork β 13904 β online β 0 β 0s β 0% β 10.6 MB β bh β enabled β
β B β 1 β fork β 2016 β online β 0 β 0s β 0% β 22.5 MB β bh β disabled β
β C β 2 β fork β 15648 β online β 0 β 0s β 0% β 31.9 MB β bh β disabled β
ββββββββββββ΄βββββ΄βββββββ΄ββββββββ΄βββββββββ΄ββββββββββ΄βββββββββ΄ββββββ΄ββββββββββββ΄ββββββββ΄βββββββββββ
I just want to see A and B, But I can't do it.
because pm2 logs command only support [id|name] or all
Why don't add pm2 logs ['A', 'B']?
Translation from Baidu
Some of the meaning may not be clearly expressed, and if it causes obstacles in reading, I'm sorry
You can do pm2 logs /[AB/] with a regex see http://pm2.keymetrics.io/docs/usage/log-management/#displaying-logs-in-real-time
You can do
pm2 logs /[AB/]with a regex see http://pm2.keymetrics.io/docs/usage/log-management/#displaying-logs-in-real-time
i think this should say pm2 logs /[AB]/ instead.
a better (more general) example would be pm2 logs "/(AppA|AppB)/"
Most helpful comment
i think this should say
pm2 logs /[AB]/instead.a better (more general) example would be
pm2 logs "/(AppA|AppB)/"