I am running some apps using PM2 (proxying through Nginx) on Debian 10. All apps where triggered without a PM2 config file. But it doesn't write to the log files it's configured to use. Works fine running via NPM on my local machine.
I tried following the answers given here: Not getting any logs for node process running through pm2 in cluster mode
But it doesn't seem to be working still.
Here is my log4js config:
appenders: {
API_log: { type: 'file', filename: './logs/API_Call.log' },
processing_log: { type: 'file', filename: './logs/processing.log' }
},
categories: {
default: { appenders: [ 'API_log' ], level: 'debug' },
processing: { appenders: [ 'processing_log' ], level: 'debug' }
}, pm2: true
});