I am currently using a PM2 ecosystem file ecosystem.config.js to start multiple Node.js apps using PM2.
module.exports = 
{
  "apps": [
    {
      "name": "foo",
      "script": "./foo.js",
    },
    {
      "name": "bar",
      "script": "./bar.js",
    },
    {
      "name": "baz",
      "script": "./baz.js",
    }
  ]
}
If we want to setup logrotate PM2 module to rotate my log files, instead of manually running the commands
pm2 set pm2-logrotate:max_size 1K 
pm2 set pm2-logrotate:compress true
pm2 set pm2-logrotate:rotateInterval '*/1 * * * *'
can the logrotate settings be configured using the ecosystem JS file?