PM2 has a good log management system, where you can choose where to save logs [Log Management Documentation]
Once that is done, you will now need to read the logs file and send its contents to SumoLogic for ingestion.
To handle sending logs to sumologic via javascript, you will want to use sumo-logger. Install this in you application.
Next, create a file mySumoLogger.js that reads the logs files, requires sumo-logger and uses it to send the data to sumologic at regular intervals.
You can also try out pm2-logrotate to rotate your log files and coordinate it with the intervals at which the data is pushed to sumo.
Finally, you will need to run mySumoLogger.js in parallel to you application(s). So your pm2 ecosystem.config.js will look something like this:
module.exports = {
apps: [
{ ...your app1 },
{ ...your app2 },
{
name: 'sumologicLogger',
script: 'node <path>/mySumoLogger.js',
},
],
};